guolin302 多分支流水线,是通过代码仓库相应路径获取的 jenkinsfile,同步分支后,执行对应 jenkinsfile 中的定义。
参数可以在 jenkinsfile 中自主定义,比如:
pipeline {
agent any
stages {
stage('stage-72get') {
steps {
echo 'ddd'
}
}
}
parameters {
choice(name: 'Environments', choices: ['dev', 'test', 'pre', 'pre2', 'prod'], description: 'desc')
}
}
同步到 git 仓库。
点击执行时会显示:
