jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-57157] Global Tools fail to update automatic installs

Offen
#488 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
component:sonar-plugin component:workflow-basic-steps-plugin imported-jira-issue pipeline priority:minor resolution:unresolved
Vorherrschende Sprache
Java
Sterne
73
Forks
129
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

When a tool is upgraded versions or the automatic installer is changed, Jenkins does not update the tool installed on the build agent.  For example, the Sonarqube plugin installs its scanner as a Global Tool with an automatic installer from maven (populated dropdown).  If you change versions, the new version does not overwrite the previous version on the build agent.

Current workaround is to manually delete the tools directory from every build agent when upgrading any tools.

Expected behavior: either install the tool to a version specific directory based on the source (zip file name, maven version, etc) or overwrite the generic directory with whichever version is specified in Global Tool Configuration (either upgrade or downgrade)

---
Originally reported by jeubank, imported from: Global Tools fail to update automatic installs


  • assignee: sonarteam
  • status: Open
  • priority: Minor
  • component(s): sonar-plugin, workflow-basic-steps-plugin
  • label(s): automatic-install, pipeline, sonarqube, tools, update
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251215-220547

Raw content of original issue

When a tool is upgraded versions or the automatic installer is changed, Jenkins does not update the tool installed on the build agent.  For example, the Sonarqube plugin installs its scanner as a Global Tool with an automatic installer from maven (populated dropdown).  If you change versions, the new version does not overwrite the previous version on the build agent.

Current workaround is to manually delete the tools directory from every build agent when upgrading any tools.

Expected behavior: either install the tool to a version specific directory based on the source (zip file name, maven version, etc) or overwrite the generic directory with whichever version is specified in Global Tool Configuration (either upgrade or downgrade)

  • environment: Jenkins 2.173, Pipeline Basic Steps 2.15, Sonarqube Scanner for Jenkins 2.8.1

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

The issue identifies Global Tool Configuration, automatic installers, and build agents but names no source file or test. Start by reproducing an automatic-install update with the listed Jenkins and plugin versions, then trace the tool-install path. Done means changing a configured tool version causes the agent's installed tool to upgrade or downgrade without manually deleting its tools directory.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
tooling
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.