我已成功以编程方式创建DSL Job Plugin
的作业我从gitlab触发“工作创建者”工作,点击帖子:
https://37.35.xxx.xxx/jenkins/project/job-creator
所以,它创造了这份工作,但它没有触发它......任何想法都该怎么做?
答案 0 :(得分:0)
过了一会儿,我发现你可以使用upstream
触发器:
pipelineJob("myJob") {
parameters {
stringParam('param1', 'value1') // this will define params for the project build
}
triggers {
gitlabPush {
buildOnMergeRequestEvents()
buildOnPushEvents()
commentTrigger('Jenkins please retry a build')
upstream("${JOB_NAME}", 'SUCCESS') // Trigger job after this job ends
}
}