当前位置:网站首页>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")边栏推荐
- flutter 混合开发 module 依赖
- npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
- sqlmap injection tutorial common commands
- 动态规划(一)| 斐波那契数列和归递
- Why is the redis single-threaded also so fast?
- cocoscreator 显示刘海内容
- For penetration testing methods where the output point is a timestamp (take Oracle database as an example)
- 【云原生】SQL(及存储过程)跑得太慢怎么办?
- win11中利用IIS10搭建asp网站
- cocos2d-x 实现跨平台的目录遍历
猜你喜欢

利用phpstudy搭建DVWA

Access database query

Android software security and reverse analysis reading notes

What is GameFi?

【swagger关闭】生产环境关闭swagger方法

【uiautomation】微信好友列表获取(存储到txt中)

场效应管 | N-mos内部结构详解

Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?

npm WARN config global `--global`, `--local` are deprecated. Use `--location solution
![[Cloud native] Open source data analysis SPL easily copes with T+0](/img/89/4a96358956782ef9dacf0b700b54c3.png)
[Cloud native] Open source data analysis SPL easily copes with T+0
随机推荐
Linux中mysql密码修改方法(亲测可用)
[Elastic-Job source code analysis] - job listener
【云原生】原来2020.0.X版本开始的OpenFeign底层不再使用Ribbon了
C语言 | 获取字符串里逗号间隔的内容
CMOS管原理,及其在推挽电路中的应用
DeFi 项目中的治理Token
Sqlite A列数据复制到B列
MySQL-如何分库分表?一看就懂
NFT:数字所有权的核心
利用phpstudy搭建DVWA
MySQL分页查询的5种方法
mysql启动报错The server quit without updating PID file几种解决办法
常见JVM面试题及答案整理
NFT与数字藏品到底有何区别?
Yuan prospect and four track of the universe
动态规划(一)| 斐波那契数列和归递
kotlin 插件更新到1.3.21
场效应管 | N-mos内部结构详解
"limit" query in Oracle database
quick-3.5 无法正常显示有混合纹理的csb文件