-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
Jenkins 2.7.4 (LTS)
Since recently (might be through the 2.7.3 to 2.7.4 upgrade) I am unable to select any credentials with the git settings directly in the job configuration.
Even if I add credentials, it does not show in the list.
Any advices?
$ java -version java version "1.8.0_102" Java(TM) SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
$ git --version git version 1.9.1
Ubuntu 14.04 LTS latest apt update && apt upgrade
Meanwhile switched the system, but same problem:
$ java -version java version "1.8.0_112" Java(TM) SE Runtime Environment (build 1.8.0_112-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)
$ git --version git version 2.1.4
Debian 8 latest apt update && apt upgrade
- duplicates
-
JENKINS-58902 Non-user-scoped credentials are not shown when build authentication is configured
-
- Open
-
- relates to
-
JENKINS-55624 Authorize Projects plugin causes no git credentials to be found with 'Run as Specific User' Strategy is set
-
- Fixed but Unreleased
-
[JENKINS-38126] Credentials dropdown empty on git scm with specific authorize project settings
Description |
Original:
Since recently (might be through the 2.7.3 to 2.7.4 upgrade) I am unable to select any credentials with the git settings directly in the job configuration. Even if I add credentials, it does not show in the list. Any advices? |
New:
Since recently (might be through the 2.7.3 to 2.7.4 upgrade) I am unable to select any credentials with the git settings directly in the job configuration. Even if I add credentials, it does not show in the list. Any advices? {code} $ java -version java version "1.8.0_102" Java(TM) SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode) {code} {code} $ git --version git version 1.9.1 {code} {code} Ubuntu 14.04 LTS latest apt update && apt upgrade {code} |
Component/s | Original: credentials-plugin [ 16523 ] |
Assignee | Original: Stephen Connolly [ stephenconnolly ] | New: Mark Waite [ markewaite ] |
Assignee | Original: Mark Waite [ markewaite ] |
Attachment | New: Screen Shot 2016-11-08 at 6.58.49 PM.png [ 34773 ] | |
Attachment | New: Screen Shot 2016-11-08 at 7.00.17 PM.png [ 34774 ] | |
Attachment | New: Screen Shot 2016-11-08 at 7.13.46 PM.png [ 34775 ] |
Attachment | New: Screenshot 2016-11-18 10.17.39.png [ 34910 ] |
Comment |
[ [~kralleman] and [~paul_symphony] I am unable to duplicate the problem you're seeing. Can you provide more details about the conditions when you see the problem. Steps I checked: h3. Global Pipeline Credentials (as fixed by Jesse Glick's [PR437|https://github.com/jenkinsci/git-plugin/pull/437]) # Add a global pipeline library named "globalPipelineLibraryMarkEWaiteprivate" # Configure the global pipeline library "globalPipelineLibraryMarkEWaiteprivate" to use git as "Legacy SCM" # Click the credentials drop down before entering any URL, confirm all credentials appear # Enter a private URL in the "Repository URL" field # Click the credentials drop down after entering the URL, confirm only credentials for that private repository appear # Observe that intentionally invalid credentials for that private repository can be selected but show red text that they don't authorize access to that private repository # Observe that valid credentials for that private repository do not show red text when they are selected h3. Job Credentials # Define a new job " # Use Git as the SCM for that job # Confirm that the credentials dropdown for the job shows all credentials prior to entering any repository URL # Enter a repository URL # Confirm that the credentials dropdown for the job shows only credentials matching that repository URL (I checked with a private github.com URL and a private bitbucket.org URL) # Save the job # Confirm that the job runs successfully (clones from the private repository, etc.) h3. Fresh Install and Job Credentials # Refer to my [earlier comment|https://issues.jenkins-ci.org/browse/JENKINS-38126?focusedCommentId=270359&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-270359] Could you explain further what you are seeing? Specifically, I'm not clear on the steps you took so that you could {quote}see the credentials properly in the system configuration but not on job configuration{quote}. ] |
Description |
Original:
Since recently (might be through the 2.7.3 to 2.7.4 upgrade) I am unable to select any credentials with the git settings directly in the job configuration. Even if I add credentials, it does not show in the list. Any advices? {code} $ java -version java version "1.8.0_102" Java(TM) SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode) {code} {code} $ git --version git version 1.9.1 {code} {code} Ubuntu 14.04 LTS latest apt update && apt upgrade {code} |
New:
Since recently (might be through the 2.7.3 to 2.7.4 upgrade) I am unable to select any credentials with the git settings directly in the job configuration. Even if I add credentials, it does not show in the list. Any advices? {code} $ java -version java version "1.8.0_102" Java(TM) SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode) {code} {code} $ git --version git version 1.9.1 {code} {code} Ubuntu 14.04 LTS latest apt update && apt upgrade {code} Meanwhile switched the system, but same problem: {code} $ java -version java version "1.8.0_112" Java(TM) SE Runtime Environment (build 1.8.0_112-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode) {code} {code} $ git --version git version 2.1.4 {code} {code} Debian 8 latest apt update && apt upgrade {code} |
Comment |
[ Not sure if this helps anyone, but I've managed to at least get mine to list a stack trace. My expectation is that this behavior is being caused by a 3rd plugin. Here is the stack trace I'm seeing on my job page. javax.servlet.ServletException: java.lang.NoSuchMethodError: com.cloudbees.plugins.credentials.CredentialsProvider.listCredentials(Ljava/lang/Class;Lhudson/model/Item;Lorg/acegisecurity/Authentication;Ljava/util/List;Lcom/cloudbees/plugins/credentials/CredentialsMatcher;)Lhudson/util/ListBoxModel; at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:233) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:233) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135) at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:958) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchMethodError: com.cloudbees.plugins.credentials.CredentialsProvider.listCredentials(Ljava/lang/Class;Lhudson/model/Item;Lorg/acegisecurity/Authentication;Ljava/util/List;Lcom/cloudbees/plugins/credentials/CredentialsMatcher;)Lhudson/util/ListBoxModel; at hudson.plugins.git.UserRemoteConfig$DescriptorImpl.doCheckCredentialsId(UserRemoteConfig.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:320) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:163) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) ... 70 more ] |
Component/s | Original: git-client-plugin [ 17423 ] |