properties {
pipelineTriggers {
triggers {
upstream(jobInfo.build_after_other_job.toString(), 'SUCCESS')
gitlabPush {
buildOnMergeRequestEvents(true)
buildOnPushEvents(true)
commentTrigger("Jenkins please retry a build")
}
}
}
}
I get following error in Jenkins:
groovy.lang.MissingMethodException: No signature of method: javaposse.jobdsl.plugin.structs.DescribableListContext.upstream() is applicable for argument types: (java.lang.String, java.lang.String) values: [some/path/job1,some/path/job2, SUCCESS]
Also, there is nothing mentioned for "triggers" in pipelineJob in API documentation