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.

On Thursday, April 14, 2022 at 5:02:50 PM UTC-4 nhoj.p...@gmail.com wrote:

> 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 <madh...@gmail.com> 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 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
>>  
>> <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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/da9563fa-546e-4af3-ab60-7b0fc4802907n%40googlegroups.com.

Reply via email to