-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Use parameter releaseType to pass to downstream #854
Use parameter releaseType to pass to downstream #854
Conversation
Thank you for creating a pull request!Please check out the information below if you have not made a pull request here before (or if you need a reminder how things work). Code Quality and Contributing GuidelinesIf you have not done so already, please familiarise yourself with our Contributing Guidelines and Code Of Conduct, even if you have contributed before. TestsGithub actions will run a set of jobs against your PR that will lint and unit test your changes. Keep an eye out for the results from these on the latest commit you submitted. For more information, please see our testing documentation. In order to run the advanced pipeline tests (executing a set of mock pipelines), it requires an admin to post |
If this is the weekly config is it not OK to hard code that? |
In #847 we have introduced a new job type for releases, so now there are "nightly", "weekly" and "release" types. The name of the file is now a misnomer, weekly_release_pipeline can be used for weekly runs or release runs and it can take different job types now. |
It is already hardcoded in the build_pipeline_generator.groovy ci-jenkins-pipelines/pipelines/build/regeneration/build_pipeline_generator.groovy Line 265 in 833a06d
This sets the default param value for the weekly pipelines to |
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.
The code looks good. Can we amend the comment about "create a weekly pipeline job" to reflect this change, please?
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.
Can you redo the commit message to include the e
in the middle of releaseType
please?
Rather than hardcoding 'Weekly', use the build parameter. Signed-off-by: Adam Brousseau <adam.brousseau88@gmail.com>
We should probably rename weekly config files to what they really are in that case :-) |
7f4a04b
to
ac46cbf
Compare
I'll further explain my use case. |
For the record, I agree with you on the cleaner design of separate boolean param for 'publish', but as you say, its outside of the scope of this PR. |
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.
LGTM, thanks for changing the comment. :)
Rather than hardcoding 'Weekly', use the build parameter. Signed-off-by: Adam Brousseau <adam.brousseau88@gmail.com>
Rather than hardcoding 'Weekly', use the build parameter.