Jenkins - Mutlibranch pipeline

21 views
Skip to first unread message

Madhu Muchukota

unread,
Apr 14, 2022, 4:46:14 PM4/14/22
to Jenkins Users
Hi Team - We are using a Multibranch pipeline with GIT branch source. When ever we delete a branch in the Project repository, we see that this branch is being showed as strike-through. How long it will be shown as strike-through and when it will get deleted completely from Jenkins UI?

Also when ever we create a new branch in Project repository, we see that in Jenkins. What is notifying Jenkins about this new branch ? If it is any poller/scanner, how frequently it looks for these updates/creates

Thanks

John Patrick

unread,
Apr 14, 2022, 5:02:50 PM4/14/22
to jenkins...@googlegroups.com
So I've changed mine to 7 days, which I've done using the groovy script that created/configures the pipeline.
e.g.
multibranchPipelineJob(...) {
  ..
  orphanedItemStrategy {
    discardOldItems {
      daysToKeep(7) // how long before dead branch build is deleted
    }
  }
  ..
}

I think the default is 30 days.

Hope that helps.
John


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3422692a-49de-4c9b-80bf-9ab05b4ebe2en%40googlegroups.com.

Jeremy Mordkoff

unread,
Apr 15, 2022, 8:33:08 PM4/15/22
to Jenkins Users
If you use the GUI, the scan interval for new branches is under Scan Multibranch Pipeline Triggers and the orphan item setting is right after it.
Reply all
Reply to author
Forward
0 new messages