-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Update Jenkins version for Windows Image #1490
Comments
you an use docker official image like busybox to update |
I'm really not too sure what you mean by this? |
@timja sorry to tag you here, but you were very helpful on the last issue I raised! |
@slide possible for you to check this? |
Currently checking the "normal" job on trusted.ci.jenkins.io . The Windows images should be using the same Jenkins version as Linux. @Jonny-vb can you share with us the image name and digest of the "latest"' image you have ? @timja can you check if there are remaining SSH deploy key on this repo (like with the docker-*-agent repositories)? |
Right now, it seems that the It is the same "version" has the one used by default: the build argument is probably not set up correctly so it does not override the image. |
Damn: there is nothing about build arg in https://github.com/jenkinsci/docker/blob/master/make.ps1#L6 🤦 |
I've upgraded your permissions, there was nothing interesting there just some old Jira webhooks that were broken |
Thanks tim! I confirm that I can reproduce the issue on my Windows machine. This is a problem in the pipeline + |
Hi @Jonny-vb , we've cleared any risks of an "old system" building and overriding images behind our back. Since we reproduce the error, It means that there is an easy that can be solved in this repository. I can give you guidance, pointers and help if you ping me in this issue or in the Gitter channel jenkins/docker. The root cause here seems to be the build argument |
So I assume make.ps1 is called from a pipeline somewhere controlled by yourselves? It looks like the JENKINS_VERSION param has to be the version number preceded by a hyphen based on the default (i.e. "-2.356" vs "2.356"). Is whatever is calling the make.ps1 script passing the version number in this correct form? |
Hi @Jonny-vb ! Let me give some pointers:
=> the goal is to check what is this script expected to do and if it is doing it correctly. A good start is to compare with the Linux |
I'm not sure that section you have highlighted is where the problem lies as that is pushing the image to docker hub. From what I can see, docker hub is updating the windows tag image, but it is the image itself that is wrong. docker/11/windows/windowsservercore-2019/hotspot/Dockerfile Lines 41 to 49 in e2fbfa6
I don't fully understand how the linux builds work, but to me it looks like the version number has to be set as part of the pipeline, otherwise it will just default to the 2.356 version. So it looks like to me the pipeline needs reviewing - how does the version number to build make it there? I can't see anything in the jenkinsfile that sets this (along with the corresponding SHA for the download) |
@dduportal @timja - I think this need a review of the non-public pipeline to really understand what is going wrong here - are either of you able to do this? |
The pipeline is public: https://github.com/jenkinsci/docker/blob/master/Jenkinsfile You are correct when saying that the version has to be set as part of the pipeline. But here, we do NOT build with "1 github tag == 1 build with release" for this repository. The Linux build shows the expected process (that the Windows process does not follow causing the issue): it retrieves the list of "recent versions" (with a bit of filtering) and decides wether or not it should be built or not. The Windows process should be updated in a way or the other (maybe using a first Linux step to retrieve the list of images and deciede to build or not, and then calling windows/linux build with the version set up or not) |
Update:
|
Reopening until validation with the next Weekly and LTS releases in two days. |
Jenkins version is now set on build time, and tags containing it are now published, allowing to use and pin a specific Jenkins version, see images since today: https://hub.docker.com/r/jenkins/jenkins/tags?page=1&name=windows |
What feature do you want to see added?
The jenkins base version seems to lag quite a lot in the windows container releases. This means I often get stuck with warnings like this whilst waiting for updates:

This is for an issue that was reported over a month ago now (and not the first time I've been stuck with one of these warnings).
It looks like the linux containers have been bumped to 2.373 now, whilst the windows version is stuck on 2.356.
Can the windows version be updated please? Is there a reason that the windows version often lags so much? If so it might be nice to add some documentation explaining this somewhere.
Upstream changes
No response
The text was updated successfully, but these errors were encountered: