-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat(Jenkinsfile_gc) adds cron trigger expression #1531
Conversation
Signed-off-by: jayfranco999 <[email protected]>
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 PR has not been tested: it fails with the following error:
08:56:07 WorkflowScript: 6: Unknown stage section "triggers". Starting with version 0.5, steps in a stage must be in a ‘steps’ block. @ line 6, column 9.
08:56:07 stage('Garbage Collection') {
=> when changing a pipeline in a PR, start in Draft, validate your change and then turn the PR ready to review once you're sure it is at least parseable (or test the pipeline locally on a custom Jenkins container)
- We want to have the job running once an hour (we never discussed the frequency no worries) instead of once a day ideally. Could you update the PR according to this request?
=> Note as per https://www.jenkins.io/doc/book/pipeline/syntax/#cron-syntax
In addition,
@yearly
,@annually
,@monthly
,@weekly
,@daily
,@midnight
, and@hourly
are supported as convenient aliases.
Signed-off-by: jayfranco999 <[email protected]>
9b5212e
to
f813472
Compare
Co-authored-by: Damien Duportal <[email protected]>
Signed-off-by: jayfranco999 <[email protected]>
* feat Signed-off-by: jayfranco999 <[email protected]> * fixup Signed-off-by: jayfranco999 <[email protected]> * Update Jenkinsfile_gc Co-authored-by: Damien Duportal <[email protected]> * fixup Signed-off-by: jayfranco999 <[email protected]> --------- Signed-off-by: jayfranco999 <[email protected]> Co-authored-by: Damien Duportal <[email protected]>
Related to jenkins-infra/helpdesk#4355 (comment)
As per #1526 (review)
We add cron trigger expression to the pipeline to execute only once daily.