Skip to content

[JENKINS-48516] When adding a new Global Pipeline Libraries the previous repository information is lost #22460

Closed

Description

@jenkins-infra-bot

When adding a new Global Pipeline Libraries and save it the previous repository information is lost. Only have the last one created.

I have attached the snapshot of the process and also a javascript error from the console.

 


Originally reported by jraezrus, imported from: When adding a new Global Pipeline Libraries the previous repository information is lost
  • assignee: dnusbaum
  • status: Resolved
  • priority: Major
  • component(s): core, workflow-cps-global-lib-plugin
  • label(s): 2.138.3-fixed
  • resolution: Fixed
  • resolved: 2018-11-09T20:25:43+00:00
  • votes: 0
  • watchers: 6
  • imported: 2025-11-24
Raw content of original issue

When adding a new Global Pipeline Libraries and save it the previous repository information is lost. Only have the last one created.

I have attached the snapshot of the process and also a javascript error from the console.

 

environment
Jenkins  2.73.1.2<br/>
Plugins:<br/>
ace-editor:1.1 &#39;JavaScript GUI Lib: ACE Editor bundle plugin&#39;<br/>
allure-jenkins-plugin:2.23 (update available) &#39;Allure Jenkins Plugin&#39;<br/>
analysis-core:1.87 (update available) &#39;Static Analysis Utilities&#39;<br/>
ansicolor:0.5.0 &#39;AnsiColor&#39;<br/>
ant:1.7 &#39;Ant Plugin&#39;<br/>
antisamy-markup-formatter:1.5 &#39;OWASP Markup Formatter Plugin&#39;<br/>
artifactory:2.9.1 &#39;Jenkins Artifactory Plugin&#39;<br/>
async-http-client:1.7.24.1 &#39;Async Http Client&#39;<br/>
authentication-tokens:1.3 &#39;Authentication Tokens API Plugin&#39;<br/>
aws-credentials:1.21 &#39;CloudBees Amazon Web Services Credentials Plugin&#39;<br/>
aws-java-sdk:1.11.68 &#39;Amazon Web Services SDK&#39;<br/>
bitbucket:1.1.5 (update available) &#39;Jenkins Bitbucket Plugin&#39;<br/>
blueocean:1.1.7 &#39;Blue Ocean&#39;<br/>
blueocean-autofavorite:1.0.0 &#39;Autofavorite for Blue Ocean&#39;<br/>
blueocean-commons:1.1.7 &#39;Common API for Blue Ocean&#39;<br/>
blueocean-config:1.1.7 &#39;Config API for Blue Ocean&#39;<br/>
blueocean-dashboard:1.1.7 &#39;Dashboard for Blue Ocean&#39;<br/>
blueocean-display-url:2.1.0 &#39;Display URL for Blue Ocean&#39;<br/>
blueocean-events:1.1.7 &#39;Events API for Blue Ocean&#39;<br/>
blueocean-git-pipeline:1.1.7 &#39;Git Pipeline for Blue Ocean&#39;<br/>
blueocean-github-pipeline:1.1.7 &#39;GitHub Pipeline for Blue Ocean&#39;<br/>
blueocean-i18n:1.1.7 &#39;i18n for Blue Ocean&#39;<br/>
blueocean-jwt:1.1.7 &#39;JWT for Blue Ocean&#39;<br/>
blueocean-personalization:1.1.7 &#39;Personalization for Blue Ocean&#39;<br/>
blueocean-pipeline-api-impl:1.1.7 &#39;Pipeline implementation for Blue Ocean&#39;<br/>
blueocean-pipeline-editor:0.2.0 &#39;Blue Ocean Pipeline Editor&#39;<br/>
blueocean-pipeline-scm-api:1.1.7 &#39;Pipeline SCM API for Blue Ocean&#39;<br/>
blueocean-rest:1.1.7 &#39;REST API for Blue Ocean&#39;<br/>
blueocean-rest-impl:1.1.7 &#39;REST Implementation for Blue Ocean&#39;<br/>
blueocean-web:1.1.7 &#39;Web for Blue Ocean&#39;<br/>
bouncycastle-api:2.16.1 &#39;bouncycastle API Plugin&#39;<br/>
branch-api:2.0.10 &#39;Branch API Plugin&#39;<br/>
build-pipeline-plugin:1.5.6 (update available) &#39;Build Pipeline Plugin&#39;<br/>
build-timeout:1.18 &#39;Jenkins build timeout plugin&#39;<br/>
checkstyle:3.48 (update available) &#39;Checkstyle Plug-in&#39;<br/>
cloudbees-assurance:2.73.0.1 &#39;Beekeeper Upgrade Assistant Plugin&#39;<br/>
cloudbees-bitbucket-branch-source:2.1.2 &#39;Bitbucket Branch Source Plugin&#39;<br/>
cloudbees-cloudfoundry-cli:2.1.3 (update available) &#39;Cloud Foundry CLI Plugin&#39;<br/>
cloudbees-folder:6.0.4 &#39;Folders Plugin&#39;<br/>
cloudbees-folders-plus:3.1 &#39;CloudBees Folders Plus Plugin&#39;<br/>
cloudbees-groovy-view:1.6 &#39;CloudBees Groovy View Plugin&#39;<br/>
cloudbees-ha:4.8 &#39;CloudBees High Availability Management plugin&#39;<br/>
cloudbees-jsync-archiver:5.6 &#39;CloudBees Fast Archiving Plugin&#39;<br/>
cloudbees-license:9.14 &#39;CloudBees License Manager&#39;<br/>
cloudbees-monitoring:2.6 &#39;CloudBees Monitoring Plugin&#39;<br/>
cloudbees-nodes-plus:1.15 &#39;CloudBees Nodes Plus Plugin&#39;<br/>
cloudbees-plugin-usage:1.6 &#39;CloudBees Plugin Usage Plugin&#39;<br/>
cloudbees-ssh-slaves:1.7 &#39;CloudBees SSH Build Agents Plugin&#39;<br/>
cloudbees-support:3.10 &#39;CloudBees Support Plugin&#39;<br/>
cloudbees-template:4.33 &#39;CloudBees Template Plugin&#39;<br/>
cloudbees-view-creation-filter:1.4 &#39;CloudBees View Creation Filter Plugin&#39;<br/>
cloudbees-workflow-template:2.7 &#39;CloudBees Pipeline: Templates Plugin&#39;<br/>
cloudbees-workflow-ui:2.1 &#39;CloudBees Pipeline Stage View Extensions&#39;<br/>
cloudfoundry:1.5 (update available) &#39;Cloud Foundry Plugin&#39;<br/>
clover:4.8.0 &#39;Jenkins Clover plugin&#39;<br/>
cloverphp:0.5 &#39;Jenkins Clover PHP plugin&#39;<br/>
cobertura:1.10 (update available) &#39;Jenkins Cobertura Plugin&#39;<br/>
conditional-buildstep:1.3.6 &#39;Conditional BuildStep&#39;<br/>
config-file-provider:2.16.0 (update available) &#39;Config File Provider Plugin&#39;<br/>
credentials:2.1.13 &#39;Credentials Plugin&#39;<br/>
credentials-binding:1.12 &#39;Credentials Binding Plugin&#39;<br/>
custom-tools-plugin:0.5 &#39;Jenkins Custom Tools Plugin&#39;<br/>
delivery-pipeline-plugin:1.0.2 (update available) &#39;Delivery Pipeline Plugin&#39;<br/>
display-url-api:2.0 &#39;Display URL API&#39;<br/>
docker-commons:1.8 &#39;Docker Commons Plugin&#39;<br/>
docker-workflow:1.12 &#39;Docker Pipeline&#39;<br/>
dry:2.47 (update available) &#39;DRY Plug-in&#39;<br/>
durable-task:1.14 &#39;Durable Task Plugin&#39;<br/>
email-ext:2.57.2 &#39;Email Extension Plugin&#39;<br/>
envinject:2.1 (update available) &#39;Environment Injector Plugin&#39;<br/>
extended-choice-parameter:0.76 &#39;Extended Choice Parameter Plug-In&#39;<br/>
extensible-choice-parameter:1.4.0 (update available) &#39;Extensible Choice Parameter plugin&#39;<br/>
external-monitor-job:1.7 &#39;External Monitor Job Type Plugin&#39;<br/>
fail-the-build-plugin:1.0 &#39;Fail The Build Plugin&#39;<br/>
favorite:2.3.0 &#39;Favorite&#39;<br/>
git:3.3.2 &#39;Jenkins Git plugin&#39;<br/>
git-client:2.4.6 &#39;Jenkins Git client plugin&#39;<br/>
git-server:1.7 &#39;Jenkins GIT server Plugin&#39;<br/>
github:1.27.0 &#39;GitHub plugin&#39;<br/>
github-api:1.85.1 &#39;GitHub API Plugin&#39;<br/>
github-branch-source:2.0.8 &#39;GitHub Branch Source Plugin&#39;<br/>
github-organization-folder:1.6 &#39;GitHub Organization Folder Plugin&#39;<br/>
gradle:1.26 &#39;Gradle Plugin&#39;<br/>
greenballs:1.15 &#39;Green Balls&#39;<br/>
handlebars:1.1.1 &#39;JavaScript GUI Lib: Handlebars bundle plugin&#39;<br/>
hipchat:2.1.1 &#39;Jenkins HipChat Plugin&#39;<br/>
htmlpublisher:1.13 (update available) &#39;HTML Publisher plugin&#39;<br/>
ibm-ucdeploy-build-steps:2.4.911656 &#39;IBM UrbanCode Deploy Pipeline (Build Steps) Plugin&#39;<br/>
ibm-ucdeploy-publisher:1.6.898775 &#39;IBM UrbanCode Deploy Plugin&#39;<br/>
icon-shim:2.0.3 &#39;Icon Shim Plugin&#39;<br/>
infradna-backup:3.34 &#39;CloudBees Back-up Plugin&#39;<br/>
ivy:1.27.1 (update available) &#39;Ivy Plugin&#39;<br/>
jackson2-api:2.7.3 &#39;Jackson 2 API Plugin&#39;<br/>
jacoco:2.2.1 &#39;Jenkins JaCoCo plugin&#39;<br/>
javadoc:1.4 &#39;Javadoc Plugin&#39;<br/>
jdepend:1.2.4 &#39;Jenkins JDepend Plugin&#39;<br/>
job-dsl:1.64 (update available) &#39;Job DSL&#39;<br/>
jquery:1.11.2-0 &#39;Jenkins jQuery plugin&#39;<br/>
jquery-detached:1.2.1 &#39;JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin&#39;<br/>
jsch:0.1.54.1 &#39;Jenkins JSch dependency plugin&#39;<br/>
junit:1.20 &#39;JUnit Plugin&#39;<br/>
ldap:1.15 &#39;LDAP Plugin&#39;<br/>
m2release:0.14.0 &#39;Jenkins Maven Release Plug-in Plug-in&#39;<br/>
mailer:1.20 &#39;Jenkins Mailer Plugin&#39;<br/>
mapdb-api:1.0.9.0 &#39;MapDB API Plugin&#39;<br/>
matrix-auth:1.6 &#39;Matrix Authorization Strategy Plugin&#39;<br/>
matrix-project:1.11 &#39;Matrix Project Plugin&#39;<br/>
maven-info:0.2.0 &#39;Jenkins Maven Info Plugin&#39;<br/>
maven-plugin:2.14 &#39;Maven Integration plugin&#39;<br/>
mercurial:1.61 &#39;Jenkins Mercurial plugin&#39;<br/>
metrics:3.1.2.10 &#39;Metrics Plugin&#39;<br/>
momentjs:1.1.1 &#39;JavaScript GUI Lib: Moment.js bundle plugin&#39;<br/>
nectar-license:8.6 &#39;CloudBees Jenkins Enterprise License Entitlement Check&#39;<br/>
nectar-rbac:5.17 &#39;CloudBees Role-Based Access Control Plugin&#39;<br/>
next-build-number:1.4 &#39;Next Build Number Plugin&#39;<br/>
nexus-jenkins-plugin:1.3.20170728-122322.902d97e (update available) &#39;Nexus Platform Plugin&#39;<br/>
node-iterator-api:1.5.0 &#39;Node Iterator API Plugin&#39;<br/>
nodejs:0.2.2 &#39;NodeJS Plugin&#39;<br/>
nodelabelparameter:1.7.2 &#39;Node and Label parameter plugin&#39;<br/>
operations-center-agent:2.73.0.1 &#39;Operations Center Agent&#39;<br/>
operations-center-analytics-config:2.73.0.1 &#39;Operations Center Analytics Configuration&#39;<br/>
operations-center-analytics-reporter:2.73.0.1 &#39;Operations Center Analytics Reporter&#39;<br/>
operations-center-client:2.73.0.1 &#39;Operations Center Client Plugin&#39;<br/>
operations-center-cloud:2.73.0.1 &#39;Operations Center Cloud&#39;<br/>
operations-center-context:2.73.0.1 &#39;Operations Center Context&#39;<br/>
pam-auth:1.3 &#39;PAM Authentication plugin&#39;<br/>
parameterized-trigger:2.35.1 &#39;Jenkins Parameterized Trigger plugin&#39;<br/>
php:1.0 &#39;php&#39;<br/>
pipeline-aggregator-view:1.7 (update available) &#39;Pipeline Aggregator&#39;<br/>
pipeline-build-step:2.5.1 &#39;Pipeline: Build Step&#39;<br/>
pipeline-github-lib:1.0 &#39;Pipeline: GitHub Groovy Libraries&#39;<br/>
pipeline-graph-analysis:1.4 &#39;Pipeline Graph Analysis Plugin&#39;<br/>
pipeline-input-step:2.8 &#39;Pipeline: Input Step&#39;<br/>
pipeline-maven:2.5.0 (update available) &#39;Pipeline Maven Integration Plugin&#39;<br/>
pipeline-milestone-step:1.3.1 &#39;Pipeline: Milestone Step&#39;<br/>
pipeline-model-api:1.1.6 &#39;Pipeline: Model API&#39;<br/>
pipeline-model-declarative-agent:1.1.1 &#39;Pipeline: Declarative Agent API&#39;<br/>
pipeline-model-definition:1.1.6 &#39;Pipeline: Model Definition&#39;<br/>
pipeline-model-extensions:1.1.6 &#39;Pipeline: Declarative Extension Points API&#39;<br/>
pipeline-npm:0.9.1 &#39;Pipeline NPM Integration Plugin&#39;<br/>
pipeline-rest-api:2.8 &#39;Pipeline: REST API Plugin&#39;<br/>
pipeline-stage-step:2.2 &#39;Pipeline: Stage Step&#39;<br/>
pipeline-stage-tags-metadata:1.1.6 &#39;Pipeline: Stage Tags Metadata&#39;<br/>
pipeline-stage-view:2.8 &#39;Pipeline: Stage View Plugin&#39;<br/>
plain-credentials:1.4 &#39;Plain Credentials Plugin&#39;<br/>
plot:1.11 (update available) &#39;Plot plugin&#39;<br/>
pmd:3.48 (update available) &#39;PMD Plug-in&#39;<br/>
publish-over-ssh:1.17 &#39;Publish Over SSH&#39;<br/>
pubsub-light:1.12 &#39;Jenkins Pub-Sub &quot;light&quot; Bus&#39;<br/>
resource-disposer:0.6 (update available) &#39;Resource Disposer Plugin&#39;<br/>
run-condition:1.0 &#39;Run Condition Plugin&#39;<br/>
scm-api:2.1.1 &#39;SCM API Plugin&#39;<br/>
script-security:1.33 &#39;Script Security Plugin&#39;<br/>
sonar:2.6.1 &#39;SonarQube Scanner for Jenkins&#39;<br/>
sse-gateway:1.15 &#39;Server Sent Events (SSE) Gateway Plugin&#39;<br/>
ssh:2.5 &#39;Jenkins SSH plugin&#39;<br/>
ssh-credentials:1.13 &#39;SSH Credentials Plugin&#39;<br/>
structs:1.8 &#39;Structs Plugin&#39;<br/>
support-core:2.41 &#39;Support Core Plugin&#39;<br/>
testng-plugin:1.14 &#39;TestNG Results Plugin&#39;<br/>
token-macro:2.1 &#39;Token Macro Plugin&#39;<br/>
unique-id:2.1.3 &#39;Unique ID Library Plugin&#39;<br/>
variant:1.1 &#39;Variant Plugin&#39;<br/>
versioncolumn:0.2 (update available) &#39;Jenkins Version Column plugin&#39;<br/>
violations:0.7.11 &#39;Jenkins Violations plugin&#39;<br/>
WhiteHat_Sentinel_Jenkins_Plugin:2.0 &#39;WhiteHat_Sentinel_Jenkins_Plugin&#39;<br/>
wikitext:3.8 &#39;CloudBees WikiText Security Plugin&#39;<br/>
windows-slaves:1.3.1 &#39;Windows Slaves Plugin&#39;<br/>
workflow-aggregator:2.5 &#39;Pipeline&#39;<br/>
workflow-api:2.18 &#39;Pipeline: API&#39;<br/>
workflow-basic-steps:2.5 &#39;Pipeline: Basic Steps&#39;<br/>
workflow-cps:2.39 &#39;Pipeline: Groovy&#39;<br/>
workflow-cps-checkpoint:2.4 &#39;CloudBees Pipeline: Groovy Checkpoint Plugin&#39;<br/>
workflow-cps-global-lib:2.8 &#39;Pipeline: Shared Groovy Libraries&#39;<br/>
workflow-durable-task-step:2.12 &#39;Pipeline: Nodes and Processes&#39;<br/>
workflow-job:2.12.2 &#39;Pipeline: Job&#39;<br/>
workflow-multibranch:2.16 &#39;Pipeline: Multibranch&#39;<br/>
workflow-scm-step:2.6 &#39;Pipeline: SCM Step&#39;<br/>
workflow-step-api:2.11 &#39;Pipeline: Step API&#39;<br/>
workflow-support:2.14 &#39;Pipeline: Supporting APIs&#39;<br/>
ws-cleanup:0.33 (update available) &#39;Jenkins Workspace Cleanup Plugin&#39;<br/>
xunit:1.102 &#39;xUnit plugin&#39;
6 attachments

Activity

  1. jenkins-infra-bot commented on Dec 12, 2017

    @jenkins-infra-bot
    Author
  2. jenkins-infra-bot commented on Jan 16, 2018

    @jenkins-infra-bot
    Author
    jraezrus:
    • Original comment link
    • Raw content of original comment:

      The problem is related to the UI only. The repositories are saved correctly but only shows the last one

    The problem is related to the UI only. The repositories are saved correctly but only shows the last one

  3. jenkins-infra-bot commented on Apr 25, 2018

    @jenkins-infra-bot
    Author
    rsandell:
    • Original comment link
    • Raw content of original comment:

      Is it only GitHub or any provider?

    Is it only GitHub or any provider?

  4. jenkins-infra-bot commented on Aug 28, 2018

    @jenkins-infra-bot
    Author
    jstripsky:
    • Original comment link
    • Raw content of original comment:

      I have the same issue loading libraries with GIT in TeamForge. 

      The issue exists using Chrome on Windows or Mac or Safari on Mac. 

    I have the same issue loading libraries with GIT in TeamForge. 

    The issue exists using Chrome on Windows or Mac or Safari on Mac. 

  5. jenkins-infra-bot commented on Oct 3, 2018

    @jenkins-infra-bot
    Author
    dnusbaum:
    • Original comment link
    • Raw content of original comment:

      I think part of the issue here might be that this code is not creating totally unique prefixes for nested groups of radio buttons. Specifically, the Modern/Legacy SCM radio buttons and the inner radio buttons for each SCM type all have the same prefix for a single library, which seems wrong.

      If I use ${h.generateId()} to uniquify the varNames}}s for all uses of {{f:repeatableBlock in workflow-cps-global-lib, then the issue appears to go away for modern SCMs (not sure about Legacy SCMs, it seemed like they weren't fixed, but that might just have been inconsistent testing).

    I think part of the issue here might be that this code is not creating totally unique prefixes for nested groups of radio buttons. Specifically, the Modern/Legacy SCM radio buttons and the inner radio buttons for each SCM type all have the same prefix for a single library, which seems wrong.

    If I use ${h.generateId()} to uniquify the varNames}}s for all uses of {{f:repeatableBlock in workflow-cps-global-lib, then the issue appears to go away for modern SCMs (not sure about Legacy SCMs, it seemed like they weren't fixed, but that might just have been inconsistent testing).

  6. jenkins-infra-bot commented on Oct 4, 2018

    @jenkins-infra-bot
    Author
    dnusbaum:
    • Original comment link
    • Raw content of original comment:

      It looks like the root cause was that radioBlock.js set the initial visibility for each radio button group using names to distinguish groups before repeatable.js uniquified the names. I've submitted a PR to workflow-cps-global-lib to work around the issue, and a PR to Jenkins core to fix the root cause.

    It looks like the root cause was that radioBlock.js set the initial visibility for each radio button group using names to distinguish groups before repeatable.js uniquified the names. I've submitted a PR to workflow-cps-global-lib to work around the issue, and a PR to Jenkins core to fix the root cause.

  7. jenkins-infra-bot commented on Oct 9, 2018

    @jenkins-infra-bot
    Author
    oleg_nenashev:
    • Original comment link
    • Raw content of original comment:

      The core's part was released in Jenkins 2.145

    The core's part was released in Jenkins 2.145

  8. jenkins-infra-bot commented on Nov 9, 2018

    @jenkins-infra-bot
    Author
    dnusbaum:
    • Original comment link
    • Raw content of original comment:

      Given that the fix in Core was backported to the 2.138 LTS line, I am closing the issue.

    Given that the fix in Core was backported to the 2.138 LTS line, I am closing the issue.

  9. jenkins-infra-bot commented on Nov 2, 2021

    @jenkins-infra-bot
    Author
    virasana:
    • Original comment link
    • Raw content of original comment:

      Shared Libraries Plugin still broken? 

      This seems to be happening in 2.303.2 with Chrome Version 95.0.4638.69 (Official Build) (x86_64)

      It does not happen on Firefox 93.0 64 bit.

      The plugin appears to scan all repositories (you can see this on-screen) and remains on the last one scanned.  The UI is broken, but the Shared Libraries config is correct under the hood, as evidenced by my jobs running with success.  Thanks to KS for identifying the issue immediately.

       

    Shared Libraries Plugin still broken? 

    This seems to be happening in 2.303.2 with Chrome Version 95.0.4638.69 (Official Build) (x86_64)

    It does not happen on Firefox 93.0 64 bit.

    The plugin appears to scan all repositories (you can see this on-screen) and remains on the last one scanned.  The UI is broken, but the Shared Libraries config is correct under the hood, as evidenced by my jobs running with success.  Thanks to KS for identifying the issue immediately.

     

  10. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions