-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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(publish) only 'publish' when triggered by a tag to not avoid overriding existing tags #1630
chore(publish) only 'publish' when triggered by a tag to not avoid overriding existing tags #1630
Conversation
…erriding existing tags Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
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.
Can we add the release team to this repository then to cut tags during the LTS process, to prevent delays, 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.
LGTM.
Can we add the release team to this repository then to cut tags during the LTS process, to prevent delays, please?
@NotMyFault do you mind if we wait to validate the new process first? I don't mind taking care of tagging for the weeklies. The reason I'm asking is because the discussion about adding the release team as writer or maintainer (to allow creating tags) should be separated from this PR to validate the permission pattern. => Keep in mind that ideally, we should have automation of this (e.g. the tag would be created by the automated release process) to avoid further human operation. |
Ping @timja @MarkEWaite WDYT? |
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 looks good to me.
Since I got 2 maintainers approval + a board member approval, I'm proceeding to merge this PR. |
Job updated in trusted.ci.jenkins.io:
For info, I won't start working on the Windows release until we've validated the current Linux publication (one step after the other) but that would be the next step. |
This PR is a proposal to only publish the image (in the private controller trusted.ci.jenkins.io) when a tag is created in the repository, to limit the possibility of overriding an existing image.
It comes from the cases where a new platform is added for this image (new CPU architecture as in #1586 new OS version as in #1629, change in jdk defaults as in #1178 etc.).
Side tasks list:
What is changed
Pipeline updated to:
JENKINS_VERSION
from the 1st element of the tag (with-
as separator) to make it available to the publication script AND allow suffix in tags.Publication script for Linux updated to:
$JENKINS_VERSION
(remove the loop and factorized code)is-published
codeTesting done
As it might be hard to test, let's use the 2.405 weekly release as a "match".
However, the following were done locally:
shellcheck
analysis without any warn or error$JENKINS_VERSION
set fails as expected with an error message:Not covered by this PR but worth doing after it's merged
lts
andweekly
branches instead ofmaster
to allow fixing the Jenkins version in the code