当前位置:网站首页>jenkins +miniprogram-ci 一键上传微信小程序
jenkins +miniprogram-ci 一键上传微信小程序
2022-07-31 05:15:00 【浮生若梦l】
准备工作
1.获取小程序代码上传密钥private.wx**********.key,放到jenkins所在服务器中,设置jenkins服务器ip白名单
2.再uni-app项目根目录创建package.json,加入以下代码
{
"scripts": {
"wxci": "cross-env node ./wxCI.js"
},
"dependencies": {
"cross-env": "^7.0.2",
"miniprogram-ci": "1.0.93"
}
}
3.在uni-app项目根目录创建wxCI.js
const ci = require('miniprogram-ci');
/**
* 获取环境参数
* type 操作类型 preview | publish
* version:版本号 上传操作必填
* desc:版本描述 上传操作必填
* appid:应用id,测试人员有时需要切换应用Id
* buildId: 构建id
*/
const { type, version = '', desc = '', appid = '', buildId='' } = getEnvParams(process.argv);
console.log("0000000000000000")
边栏推荐
- Yuan prospect and four track of the universe
- 为什么bash中的read要配合while才能读取/dev/stdin的内容
- cocoscreator3.5.2打包微信小游戏发布到QQ小游戏修改
- [JVM Loading]---Class Loading Mechanism
- 【JVM加载】---类加载机制
- cocos2d-x-3.x 修改和纪录
- 碎片化NFT(Fractional NFT)
- Digital twins will be an important way to enter the "metaverse"
- [uiautomation] Get WeChat friend list (stored in txt)
- js中的全局作用域与函数作用域
猜你喜欢
Linux modify MySQL database password
What is an EVM Compatible Chain?
Digital twins will be an important way to enter the "metaverse"
The server time zone value ‘й‘ is unrecognized or represents more than one time zone
MySQL压缩包方式安装,傻瓜式教学
计网 Packet Tracer仿真 | 简单易懂集线器和交换机对比(理论+仿真)
为什么bash中的read要配合while才能读取/dev/stdin的内容
Build DVWA with phpstudy
【JVM加载】---类加载机制
Yuan prospect and four track of the universe
随机推荐
Artifact SSMwar exploded Error deploying artifact.See server log for details
腾讯云轻量服务器删除所有防火墙规则
什么是EVM兼容链?
UiBot存在已打开的MicrosoftEdge浏览器,无法执行安装
js中的对象与函数的理解
动态规划(一)| 斐波那契数列和归递
configure:error no SDL library found
sql 外键约束【表关系绑定】
Getting to know regular expressions
初识正则表达式
[swagger close] The production environment closes the swagger method
Yuan prospect and four track of the universe
NFT与数字藏品到底有何区别?
【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】
MySql to create data tables
Pure shell implementation of text replacement
工件SSMwar exploded 部署工件时出错。请参阅服务器日志了解详细信息
quick-3.6源码修改纪录
(Crypto必备干货)详细分析目前NFT的几大交易市场
Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'