-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add script to update Jenkins version info registry #492
Conversation
Adds a script to the installer which will update the version information in the registry for Jenkins after an upgrade of the WAR file vie the Jenkins UI.
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.
I guess, people should really run the MSI though...
@kmartens27 FYI for changelog |
I am looking at disabling using the MSI for upgrades, it conflicts with the ability to upgrade the WAR through the Jenkins UI. We need to have one or the other, not both. |
Its fairly common to be able to do both isn't it? An application can update itself, but if you run an installer it will also update it Would be good if the upgrade process in Jenkins fully updated everything though. |
Usually in the cases where an application updates itself, it is not using an MSI, or downloads an updated MSI and runs that to upgrade. I agree that the Jenkins UI upgrade would be nice to include this update, but it requires modifying the registry, which requires admin access. If there is a way to run something as admin under Jenkins, we could do it. |
@slide @timja this PR makes the weekly packaging failing today:
Is there anything which need to be set up on the infra side to make this work? |
No, there should not be. Is there any more details from the logs? |
Feel free to revert to unblock the release |
I am not 100% sure it is this PR, I chose the "last" one. We know it worked last Wednesday for 2.487. Thanks for the quick response |
Ok, it looks like the |
Or we use a newer powershell in the build? |
Yeah, could be a good idea! I felt bad for having reverted your PR, and upgrading to a newer Powershell clearly is a good idea. The packaging agent definition is a Windows pod template defined here: https://github.com/jenkins-infra/release/blob/master/PodTemplates.d/package-windows.yaml Packages itself happens in https://github.com/jenkins-infra/release/blob/934635d1f0ab7c29be86f42f79461cdab70a6495/PodTemplates.d/package-windows.yaml#L31 |
I guess because its using dotnet framework 3.5 which is ancient? https://github.com/jenkins-infra/release/blob/master/PodTemplates.d/package-windows.yaml#L31 |
Wix 3.x requires .NET 3.5 to run. I have toyed briefly with updating to Wix 4.x, but haven't had the time to do it. |
Adds a script to the installer which will update the version information in the registry for Jenkins after an upgrade of the WAR file vie the Jenkins UI.
Testing done
Tested by setting up a self-signed certificate to check the signing portion of build.ps1. Tested update script as part of of Jenkins community post: https://community.jenkins.io/t/windows-upgrading-in-place-doesnt-update-version-information-in-add-remove-programs/7069/7
Submitter checklist