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


On Thu, 14 Apr 2022 at 21:46, Madhu Muchukota <[email protected]> wrote:

> 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
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/3422692a-49de-4c9b-80bf-9ab05b4ebe2en%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/3422692a-49de-4c9b-80bf-9ab05b4ebe2en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAH9u10%3DQc9SALOifk9CBoHobm6OiSkpfoatc7bHxPJ2W4y4zZg%40mail.gmail.com.

Reply via email to