rya*_*506 5 jenkins jenkins-job-dsl jenkins-pipeline
这是我的工作DSL,它创建了管道作业,其中脚本来自scm本身。
pipelineJob ("${jobName}_deploy") {
description("built by seed")
definition {
cpsScm {
scm {
git {
remote {
url('gitUrl')
credentials('user_creds')
}
branch('master')
}
}
scriptPath "scripts/pipeline/jenkinsfile_deploy"
}
}
}
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激。我有很多工作,我需要打开每个工作,然后单击该复选框很痛苦。
您可以使用配置块添加内置 DSL 中缺少的任何选项:
pipelineJob('example') {
definition {
cpsScm {
// ...
}
}
configure {
it / definition / lightweight(true)
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6199 次 |
| 最近记录: |