Issue Type: Bug Bug
Assignee: Daniel Spilker
Components: job-dsl-plugin
Created: 20/Feb/15 1:55 PM
Description:

We have setup the seed job to take parameters on build so that we are able to generate several job pipelines of the same type. (Background: we have a similar pipeline for all micro services and our seed job is able to spin up a pipeline for a new micro service in one step.)

When changing the seed job's config and manually running a new build another build is automatically triggered on top with "Template has changed" given as build cause. This automatic build takes no manual user input and thus creates a new job setup with the default values provided for the parameters. This results in unwanted jobs on Jenkins.

We have deselected "Ignore changes" as we do want a new run to update existing jobs, albeit only for the parametrized setup (and not for any other clones). It looks like setting "Ignore changes" to true does not trigger the issue, but this is not a viable solution in our case.

Our current workaround is to detect those "ghost" builds with cause "Template has changed" via a quick shell step inside the seed job:

set -e
curl $BUILD_URL/api/json | grep -v "Template has changed"

This will cause the automatic build to fail, while manually triggered builds pass. For us this is not viable solution in the long term.

As far as we understand this is caused by https://github.com/jenkinsci/job-dsl-plugin/blob/master/job-dsl-plugin/src/main/groovy/javaposse/jobdsl/plugin/MonitorTemplateJobs.java#L83 although we do not understand what the intentions are.

The job itself has no trigger configured under "Build Triggers" and as such we do not expect builds to be triggered automatically.

Environment: Jenkins 1.580.2
Job DSL 1.28
Project: Jenkins
Priority: Major Major
Reporter: Christoph Burgmer
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to