Skip to content

Instantly share code, notes, and snippets.

@camiloribeiro
Created April 23, 2015 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camiloribeiro/d5377ea528952558267a to your computer and use it in GitHub Desktop.
Save camiloribeiro/d5377ea528952558267a to your computer and use it in GitHub Desktop.
join trigger jenkins jobdsl
configure { project -> project / publishers << 'join.JoinTrigger' {
'joinProjects'{}
'joinPublishers' {
'hudson.plugins.parameterizedtrigger.BuildTrigger' {
'configs' {
'hudson.plugins.parameterizedtrigger.BuildTriggerConfig' {
'configs' {
'hudson.plugins.parameterizedtrigger.PredefinedBuildParameters' {
properties(‘SOME_PARAM=$SOME_PARAM\nSOME_OTHER_PARAM=$SOME_OTHER_PARAM')
}
}
projects(‘your-job-here’)
condition('SUCCESS')
triggerWithNoParameters('false')
}
}
}
}
evenIfDownstreamUnstable('false')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment