Documentation and functionality mismatch

30 views
Skip to first unread message

Peter

unread,
Jul 7, 2023, 11:38:35 AM7/7/23
to job-dsl-plugin
Hi,

I'm creating seed pipeline with job-dsl-plugin v1.84.

In pipeline I see warning
Warning: (jobs_creator.groovy, line 53) triggers is deprecated

also in https://jenkinsci.github.io/job-dsl-plugin/#path/pipelineJob I see "triggers" as deprecated, I check Deprecation policy page and Migration page for v1.77 where it is stated, that 6 months after announcement functionality should be removed. Unfortunately, "triggers" are still in use and when I decide to migrate it, with this code
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 pipelineJob -> properties Am I miss something or it is big mess between functionality and documentation? BR, Peter
Reply all
Reply to author
Forward
0 new messages