随笔分类 -  CI & CD

摘要:Jenkins 环境变量就是通过 env 关键字暴露出来的全局变量,可以在 Jenkins 文件的任何位置使用 查看 Jenkins 系统内置环境变量 ${JENKINS_URL}/env-vars.html through pipeline pipeline { agent any stages 阅读全文
posted @ 2022-11-02 01:11 ascertain 阅读(675) 评论(0) 推荐(0) 编辑
摘要:https://github.com/jenkinsci/docker/blob/master/README.md 阅读全文
posted @ 2022-11-02 00:58 ascertain 阅读(15) 评论(0) 推荐(0) 编辑
摘要:pipeline { agent { label 'translation' } environment { param1 = 'value1' } triggers { GenericTrigger( genericVariables: [ [defaultValue: '', key: 'src 阅读全文
posted @ 2022-08-03 18:42 ascertain 阅读(32) 评论(0) 推荐(0) 编辑
摘要:maven-deploy: 阅读全文
posted @ 2022-06-12 23:57 ascertain 阅读(18) 评论(0) 推荐(0) 编辑
摘要:全局变量: ${YOUR_JENKINS_HOST}/env-vars.html 页可以查看所有可用的内置环境变量 readJSON & writeJSON: println env.JOB_NAME println env.BUILD_NUMBER println env.WORKSPACE pr 阅读全文
posted @ 2022-06-12 11:39 ascertain 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-07 00:25 ascertain 阅读(28) 评论(0) 推荐(0) 编辑
摘要:#!/bin/env bash git init touch init git add -- . git commit -am init echo a >> main_file git add --all git commit -am 'main a' echo b >> main_file git 阅读全文
posted @ 2021-12-16 16:46 ascertain 阅读(24) 评论(0) 推荐(0) 编辑
摘要:Causation: Your origin remote is set up to fetch only certain branches git remote set-branches --add origin bb git remote set-branches origin '*' It i 阅读全文
posted @ 2021-12-05 16:45 ascertain 阅读(1007) 评论(0) 推荐(0) 编辑
摘要:Windows: Linux 不同目录对应不同配置 阅读全文
posted @ 2021-08-19 15:38 ascertain 阅读(35) 评论(0) 推荐(0) 编辑
摘要:%WORKSPACE% <=> D:\workspace\com.cjml.service.verification 比git仓库多了 .git文件夹 多了 target文件夹 在此编译打包 阅读全文
posted @ 2021-04-21 11:15 ascertain 阅读(46) 评论(0) 推荐(0) 编辑
摘要:本地分支master与origin/master建立关联,origin/master被删除,重置 本地分支master与origin/main建立关联 查找配置文件位置 设置变量(默认 local) 拉取远程所有分支 git fetch --tags --force --progress -- ht 阅读全文
posted @ 2021-04-18 19:52 ascertain 阅读(62) 评论(0) 推荐(0) 编辑
摘要:#/bin/env sh #set -e # errexit #cwRsyncServer <=> case sensitive(module) #cwRsyncClinet <=> case insensitive export LANG=zh_CN.utf8 ml_slb=lb-uf611bih 阅读全文
posted @ 2020-11-27 17:09 ascertain 阅读(108) 评论(0) 推荐(0) 编辑
摘要:echo "which package to retroversio?:disabled" #ssh administrator@172.16.20.106 "ssh administrator@172.16.20.106 C:\\Progra~1\\git\\bin\\bash -c /c/scr 阅读全文
posted @ 2020-11-27 17:00 ascertain 阅读(111) 评论(0) 推荐(0) 编辑
摘要:Active Choice plug-in会生成三种参数类型: 1,Active Choices Parameter(主动选择参数) Active Choices参数使用Groovy脚本或Scriptler目录中的脚本动态生成构建参数的值选项列表。 2,Active Choices Reactive 阅读全文
posted @ 2020-11-27 16:53 ascertain 阅读(6464) 评论(0) 推荐(1) 编辑
摘要:开始会有三个选项 选择Basic Parameter TypesExtended choice parameters,扩展选项插件 勾选Quote Values后,变量是有双引号的Multi Select: Radio Buttons:相当于单选,但是比Single Select直观 Check B 阅读全文
posted @ 2020-11-16 16:02 ascertain 阅读(367) 评论(0) 推荐(0) 编辑
摘要:试了Windows & Linux 全部失败,按照网上的教程:1.更改Jenkins根目录的hudson.model.UpdateCenter.xml <?xml version='1.1' encoding='UTF-8'?> <sites> <site> <id>default</id> <!- 阅读全文
posted @ 2020-11-16 15:26 ascertain 阅读(91) 评论(0) 推荐(0) 编辑
摘要:fore-end 分发器: #!/bin/env bash host=$1 interval=$2 project=$3 echo $host echo $interval for b in `IFS=$',';echo $project`;do echo $b #echo "$IFS"|xxd - 阅读全文
posted @ 2020-09-22 15:07 ascertain 阅读(490) 评论(0) 推荐(0) 编辑
摘要:Jenkins在执行CMD批处理脚本中,经常出现乱码,原因如下: CMD默认编码方式ANSI,但是在执行完某些命令后,可能会改变CMD的编码方式,导致出现乱码解决方式就是在出现乱码的命令前将CMD的编码方式切换到ANSI chcp 936 默认是ANSI 如下代码如果不加chcp 936,会报错 @ 阅读全文
posted @ 2020-08-16 14:58 ascertain 阅读(2625) 评论(0) 推荐(0) 编辑
摘要:Plugins: Email Extension Template Pipeline email 配置段 先利用Declarative Directive Generator生成 Post stage代码段 post { always { // One or more steps need to b 阅读全文
posted @ 2020-08-05 16:47 ascertain 阅读(466) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示