New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(ci) make sure tags dont get built by the nightly cron #5594
Conversation
@@ -1,17 +1,35 @@ | |||
pipeline { | |||
agent none | |||
triggers { | |||
cron(env.BRANCH_NAME == 'master' | env.BRANCH_NAME == 'next' ? '@daily' : '') | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may need to cherry-pick and push this line onto the 2.x tags
anyOf { branch 'master'; branch 'next' } | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this evaluates to
if (
( buildingtag && not cron ) ||
( ( branch = master || branch = next) && cron )
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put that in a comment on the file, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added in f4485bb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with one minor request
anyOf { branch 'master'; branch 'next' } | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put that in a comment on the file, too.
* chore(ci) make sure tags dont get built by the nightly cron * chore(doc) add a comment about the Jenkinsfile when logic
* chore(ci) make sure tags dont get built by the nightly cron * chore(doc) add a comment about the Jenkinsfile when logic
* chore(ci) make sure tags dont get built by the nightly cron * chore(doc) add a comment about the Jenkinsfile when logic
There's only two conditions in which Jenkins should be doing anything
Release:
Nightly Release:
SCM push to next / master is a noop
cron event runs build, test and nightly release stages
SCM tag runs build, test and nightly release stage also the tag doesn't attempt to re-run every 24hrs