On Monday, March 14, 2022 at 2:44:52 AM UTC-6 François wrote:
> no one knows how to limit a cron to a branch in a Jenkinsfile ? > > See https://github.com/jenkinsci/packaging/blob/5707f90ede196076fcd1308e517c90d52e0e9d99/Jenkinsfile#L6 for one technique to consider. It makes the cron property conditional based on if the current branch is the primary branch in the repository. -- 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/61d65321-8e41-4bf6-a760-de9bd0ca89c1n%40googlegroups.com.
