[JENKINS-71651] Fix administrative monitor buttons #191
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JENKINS-71651
Reproduction environment
A fresh install of Jenkins 2.401.2 LTS
Choosing to install no plugins during the wizard
Installing Health Advisor by CloudBees (https://plugins.jenkins.io/cloudbees-jenkins-advisor/) Version 336.v4d00382fe22c
openjdk version "11.0.18" 2023-01-17
OpenJDK Runtime Environment Temurin-11.0.18+10 (build 11.0.18+10)
OpenJDK 64-Bit Server VM Temurin-11.0.18+10 (build 11.0.18+10, mixed mode)
Issue
When clicking the "Configure Now" or "Uninstall Plugin" buttons in the administrative monitor for Jenkins Health Advisor by CloudBees plugin, the buttons do not redirect you:
Expected behaviour
Usually these buttons redirect you to:
JENKINS_URL/manage/cloudbees-jenkins-advisor/
JENKINS_URL/pluginManager/installed
Testing done
After my changes were implemented, I again ran:
mvn hpi:run -Djenkins.version=2.404
and the administrative monitor is working again:I also ran
mvn clean verify
and all the tests pass still, and took thetarget/cloudbees-jenkins-advisor.hpi
and installed it on my Jenkins 2.401.2 LTS instance described in theReproduction environment
, and after restarting, the administrative monitor was also working correctly now:Submitter checklist