Status: Resolved (View Workflow)
Git plugin: 3.0
Pipeline: Shared Groovy Libraries: 2.3
With the release of 2.3, the jenkinsci/workflow-cps-global-lib-plugin offers a better way of managing global libraries.
The current issue is that is does not seem possible to add repositories with either the Modern or the Legacy SCM options.
Nothing pops up when selecting Modern.
I can't select any credentials when trying to use Legacy mode even though we have some globally scoped.
JENKINS-38048 Credentials dropdowns empty when configuring external libraries at the global level
Same problem here when loading the library from Jenkinsfile I can see:
Loading library github.com/moltin/jenkins-pipeline-library@master Creating git repository in /var/jenkins_home/caches/git-10e1b910805192749e5be85c3935e6d6 > git init /var/jenkins_home/caches/git-10e1b910805192749e5be85c3935e6d6 # timeout=10 Setting origin to https://github.com/moltin/jenkins-pipeline-library.git
But when trying to use the Global Configuration the following it's thrown:
Loading library github.com/moltin/jenkins-pipeline-library@branches/master java.lang.NullPointerException at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:74) at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:150) at org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:131)
So something different it's happening when loading the library from the Jenkinsfile vs Global configuration which works
Regarding lack of options under Modern SCM, I am still waiting for SCM plugin maintainers to merge and release my PRs.
Regarding lack of credentials under Legacy SCM, different PRs but the same story. I cannot force other maintainers to proceed.
The NPE is a bug, which I have not heard of before; please file separately with details to reproduce from scratch.
We are seeing this behavior for Legacy SCM.
jglick Has there been any update to your PRs?
kwayman I think they were merged in, they are just waiting for the maintainer to release (see https://issues.jenkins-ci.org/browse/JENKINS-38048)
+1, with latest stack as of current :