-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Publish acceptance-test-harness
docker image on release
#3084
Comments
Proposal:
WDYT @timja ? we'll discuss this issue in the next infra weekly meeting |
Why in It already exists in the Apart from that sounds good. |
Oh, then easier to have the same name then. Thanks for the pointer! |
Created jenkins-infra/kubernetes-management#2730 as first step to have infra.ci scanning the repository. Ping @timja , as I'm not admin on the jenkinsci org., we need a GitHub app (ID + private key) to allow infra.ci to authenticate. |
@dduportal we can create the GitHub App and ask to install it on jenkinsci org/repositories, @timja will only have to accept the installation. |
So I might be missing something but I can't find a way to install the "infra.ci.jenkins.io" GitHub application on the @timja I'm adding a new GitHub app in the |
N.B. found why we can't install the current "infra.ci" somewhere else: there is the following option only available when creating the app: |
Yeah check that button and you'll be able to install it |
I can't find the option on an existing app. It seems it's only on the creation form. |
It's on the advanced page, e.g. https://github.com/organizations/jenkinsci/settings/apps/jenkins-incrementals-publisher/advanced (Make public) |
@timja tested the job configuration manually and it worked (with jenkins-infra/kubernetes-management#2737 applied). Once merged, I'll open a PR in the repo to start building the image. |
First step: jenkinsci/acceptance-test-harness#905 |
Checking pull request [#905](https://github.com/jenkinsci/acceptance-test-harness/pull/905)
Found [#905](https://github.com/jenkinsci/acceptance-test-harness/pull/905). has no labels
Has no labels. Includes this pull request.
(not from a trusted source)
‘Jenkinsfile.infra.ci.jenkins.io’ not found
Does not meet criteria @timja Can I ask you to set me developer for the acceptance-test-harness so that I can die-and-retry the build part in jenkinsci/acceptance-test-harness#905 ? |
Added you. There's a dockerhub-admins team that was already added to the repository, we may should add infra people to that team, for future cases. |
I verified that |
Would suggest switching to CD (jenkins-infra/repository-permissions-updater#2714) in which case you do not need to deal with tags. |
? It uses CD, Basil was just referring to an old tag I assume |
Right, core's current |
Thanks for the summary: we are in agreement on this target. The issue is not closed because only the |
Ping @timja @basil , can you create a new tag on the ath repository? I've double checked: the job is configured to discover (git) tags and to publish the Docker image with the (Docker) tag associated. Existing tags were not built because they were created prior to the PR introducing the Docker image build (so the MB job does not pick it). Please note that our default setup also prevent automatically building tags older than 3 days to avoid build waves when scanning repository. |
needs the master branch to pass, I think it flaked on https://ci.jenkins.io/blue/organizations/jenkins/Core%2Facceptance-test-harness/detail/master/567/tests |
Gotcha. I’m keeping this issue open and i’ll watch |
=> tag is picked up. I'm not sure why it is not triggered though (I assume I mis-configured something). |
|
Ok, got it: the tag has a timestamp when the Draft release was created. If you look at the GH release, the artifacts are dated "5 days ago". Since the job policy says "no build of tags older than 3 days ago", then it explains why the build was not triggered. We had this issue with our own "CD" system for the infra and we solved by by annotating tag (so that the timestamp is changed when the release is triggered) (ref. https://github.com/jenkins-infra/pipeline-library/blob/master/vars/buildDockerAndPublishImage.groovy#L187). Not sure how to do it here:
|
Gotcha, it's a leftover or me not understanding properly gh status API. Gotta fix it. |
Mmmh that would mean annotating the tag there: https://github.com/jenkins-infra/jenkins-maven-cd-action/blob/master/run.sh#L12. |
I am not very familiar with |
(or release creation events) |
@jglick Let me open an issue describing a bit more in the reusable action for CD, but https://github.com/orgs/community/discussions/4924 |
If this workflow has a the correct GITHUB_TOKEN to ensure that it can |
|
As of merging jenkins-infra/github-reusable-workflows#16 and releasing the PR, we should now have annotated tags on new releases |
Thank you very much! As a result of these efforts, core is back on track with the latest version of ATH in jenkinsci/jenkins#7099 🎉 |
Closing the issue:
|
Service(s)
infra.ci.jenkins.io
Summary
see https://github.com/jenkinsci/acceptance-test-harness/blob/master/src/main/resources/ath-container/Dockerfile
and jenkinsci/acceptance-test-harness#875
What would be the best way to get this publishing automatically?
Reproduction steps
No response
The text was updated successfully, but these errors were encountered: