当前位置:网站首页>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")边栏推荐
- [Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
- NFT:数字所有权的核心
- 【云原生】开源数据分析 SPL 轻松应对 T+0
- MySQL高级SQL语句(二)
- Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'
- 为什么redis是单线程还那么快?
- For penetration testing methods where the output point is a timestamp (take Oracle database as an example)
- js中的break与continue退出
- 阿里云中mysql数据库被攻击了,最终数据找回来了
- 2021年京东数据分析工程师秋招笔试编程题
猜你喜欢
随机推荐
场效应管 | N-mos内部结构详解
【Elastic-Job源码分析】——作业监听器
cocos2d-x-3.2图片灰化效果
Eternal blue bug reappears
数据库 | SQL查询进阶语法
For penetration testing methods where the output point is a timestamp (take Oracle database as an example)
Judgment of database in SQL injection
Linux modify MySQL database password
powershell statistics folder size
Year-end summary - the years are quiet~
【uiautomation】微信好友列表获取(存储到txt中)
最新MySql安装教学,非常详细
Several solutions for mysql startup error The server quit without updating PID file
理解js运算符
cocos2d-x-3.2 Physics
正则表达式基础知识
Regular Expression Basics
The feign call fails, JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
阿里一面,说说你知道消息中间件的应用场景有哪些?
The MySQL database in Alibaba Cloud was attacked, and the data was finally recovered



![[uiautomation] Get WeChat friend list (stored in txt)](/img/26/1f3424c5998c52c6e10ced8529012a.png)





