摘要: 例如我们在 stage1中 利用 script 代码块 设置赋值了一个 变量,然后想在 stage2中使用。应该怎么操作呢? https://stackoverflow.com/questions/53541489/updating-environment-global-variable-in-je 阅读全文
posted @ 2023-10-31 20:01 爱啦啦 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 位于parallel块下的阶段都将并行执行,而且并行阶段还可以被分到不同的Jenkins agent上执行。 在默认情况下,Jenkins pipeline要等待parallel块下所有的阶段都执行完成,才能确定结果。如果希望所有并行阶段中的某个阶段失败后,就让其他正在执行的阶段都中止,那么只需要在 阅读全文
posted @ 2023-10-31 19:53 爱啦啦 阅读(548) 评论(0) 推荐(0) 编辑
摘要: ###容器连接的网络端口映射 容器中可以运行一些网络应用,要让外部也可以访问这些应用,可以通过 -P 或 -p 参数来指定端口映射。 [root@localhost ~]# docker run -d -P training/webapp python app.py 28be8e93bd9c3761 阅读全文
posted @ 2022-06-12 12:40 爱啦啦 阅读(445) 评论(0) 推荐(0) 编辑
摘要: Demo用法: xxx@rmxx07:/work/xxx/smxxxx_vnd$ hmm Run "m help" for help with the build system itself. Invoke ". build/envsetup.sh" from your shell to add t 阅读全文
posted @ 2022-06-08 22:04 爱啦啦 阅读(126) 评论(0) 推荐(0) 编辑
摘要: envsetup.sh内容: xxxx@rmxx07:/work/buildfarm/smxxxx_vnd$ head -50 build/envsetup.sh function hmm() { cat <<EOF Run "m help" for help with the build syst 阅读全文
posted @ 2022-06-08 21:41 爱啦啦 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 一、基本数据类型简介: 基础语法网址: https://www.w3cschool.cn/groovy/groovy_basic_syntax.html 这里推荐一个groovy在线运行网址,方便简单运行测试: http://groovy.jsrun.net/ // 条件 fail_reason = 阅读全文
posted @ 2022-05-20 11:30 爱啦啦 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 看一个项目中经常用到的下代码方法: 一、已知条件: 知道gerrit服务域名与端口(一般默认都是29418),有下代码权限;通过测试命令看是否有权限,简单测试命令如下: ssh -p 29418 xxxx.xxx.xxx 二、下代码原理: 1.通过ssh命令获取到所有的project; 2.逐个gi 阅读全文
posted @ 2022-03-13 22:55 爱啦啦 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 这几个都是在bash脚本中经常用到的: 第一种: cmd <<EOF .. EOF 含义是here-document,表示传给给cmd的stdin的内容从这里开始是一个文档,内容碰到EOF为截止 $ cat <<EOF This is a document EOF 把EOF之间的内容,作为一个文档传 阅读全文
posted @ 2022-03-07 22:43 爱啦啦 阅读(1114) 评论(0) 推荐(1) 编辑
摘要: https://www.cnblogs.com/gravity-126/p/13368410.html 阅读全文
posted @ 2022-03-07 22:28 爱啦啦 阅读(118) 评论(0) 推荐(0) 编辑
摘要: http://c.biancheng.net/view/1120.html 阅读全文
posted @ 2022-03-07 22:26 爱啦啦 阅读(24) 评论(0) 推荐(0) 编辑