def generateJobStage(String jobName) { return { node('master') { echo "${jobName} start" slee ...
pipeline中任务分段日志获取
发表于
|
更新于
脚本式pipelineimport hudson.model.Actionimport org.jenkinsci.plugins.workflow.cps.nodes.StepStartNodeimport org.jenkinsci.plugins.workflow.graph.FlowNode ...
jenkins运行shell脚本时读取系统环境变量
发表于
|
更新于
FreeStyle的JenkinsJob在freestyle的job中配置执行shell命令后,job在运行时默认的执行方式为 /bin/bash -xe /tmp/jenkinsxxxx.sh Building in workspace /var/lib/jenkins/workspace/jen ...
通过shell实现yaml目标变量替换
发表于
|
更新于
yaml的模板build_template.yaml如下 repos: - url: "${REPO_URL}" branch: "${BRANCH}" REPO_URL和BRANCH定义在环境变量中或写入config.ini文件 # cat conf ...