[JIRA] (JENKINS-60546) job-dsl triggers all jobs in organizationFolder on second seed job run

2 views
Skip to first unread message

alius.miles@gmail.com (JIRA)

unread,
Dec 19, 2019, 12:08:02 PM12/19/19
to jenkinsc...@googlegroups.com
Taras Bondarchuk created an issue
 
Jenkins / Bug JENKINS-60546
job-dsl triggers all jobs in organizationFolder on second seed job run
Issue Type: Bug Bug
Assignee: Daniel Spilker
Components: job-dsl-plugin
Created: 2019-12-19 17:07
Environment: Jenkins ver. 2.204.1
job-dsl-plugin 1.76
Priority: Major Major
Reporter: Taras Bondarchuk

On second run of seed job JobDSL recreates organizationFolders and triggers build for all jobs in it, with build cause 'Branch indexing'. SkipInitialBuildOnFirstBranchIndexing is configured in build strategies, and first run of seed job is indeed skipping builds, but second run seems to ignore that.

Are there any ways to prevent this? My understanding is that for MultiBranchPipeline it's done by 'id' parameter, but what about all mutlibranch pipelines created by organizationFolder?

Possible hack to diminish impact is to add when clause to all pipelines to skip stages on Branch Indexing, but that's way less then optimal:

when {
 not {
   triggeredBy 'BranchIndexingCause'
 }
}

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages