Credentialid with github is not working in pipeline script on jenkins slave

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Credentialid with github is not working in pipeline script on jenkins slave

Hound G
I am testing pipeline configuration script with below code, 

#!groovy

node("jenkins-slave") {
  try {
    stage("Checkout") {  
     checkout([$class: 'GitSCM',
     branches: [[name: 'test']], 
     doGenerateSubmoduleConfigurations: false, 
     userRemoteConfigs: [[
         credentialsId: '6ad7b0af-30fd-4ca6-a80e-e629b5d7f212', 
         url: 'https://githubent.abc.com/test/ops.git'
     ]]]
     )
    }
  } catch (error) {
    throw error
  }


But I am getting the below error . I have configured credentials correctly(attached)


> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://githubent.abc.com/test/ops.git # timeout=10
Fetching upstream changes from https://githubent.abc.com/test/ops.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials cso-cv-tools
 > git fetch --tags --progress https://githubent.abc.com/test/ops.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from https://githubent.abc.com/test/ops.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
at hudson.security.ACL.impersonate(ACL.java:260)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress https://githubent.abc.com/test/ops.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: error: The requested URL returned error: 403 Forbidden while accessing https://githubent.abc.com/test/ops.git/info/refs

fatal: HTTP request failed

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1903)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1622)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:336)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
at ......remote call to jenkins-slave(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
at hudson.remoting.Channel.call(Channel.java:830)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
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:498)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
at com.sun.proxy.$Proxy81.execute(Unknown Source)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
... 13 more


Without using the credential option, if i use the github credential directly in url, it works fine

eg: 
node("jenkins-slave") {
  try {
    stage("Checkout") {  
     checkout([$class: 'GitSCM',
     branches: [[name: 'test']], 
     doGenerateSubmoduleConfigurations: false, 
     userRemoteConfigs: [[
                   url: 'https://mygituser:[hidden email]/test/ops.git'
     ]]]
     )
    }
  } catch (error) {
    throw error
  }

Any help will be appreciated.

Thanks,
Hound 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ceeb7c72-fa54-450a-b7fa-4d42bdbbfb7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

credentials.png (63K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Credentialid with github is not working in pipeline script on jenkins slave

Hound G
I am observing this issue with  freestyle job as well. Username & password (provided through credentials plugin) is not working with github git cloning.
Any help will be highly appreciated.

Thanks,
Hound 


On Friday, July 7, 2017 at 5:48:19 PM UTC-7, Hound G wrote:
I am testing pipeline configuration script with below code, 

#!groovy

node("jenkins-slave") {
  try {
    stage("Checkout") {  
     checkout([$class: 'GitSCM',
     branches: [[name: 'test']], 
     doGenerateSubmoduleConfigurations: false, 
     userRemoteConfigs: [[
         credentialsId: '6ad7b0af-30fd-4ca6-a80e-e629b5d7f212', 
         url: '<a href="https://githubent.abc.com/test/ops.git" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4r74rSSlRfZ_5v7NedXdjw-incg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4r74rSSlRfZ_5v7NedXdjw-incg&#39;;return true;">https://githubent.abc.com/test/ops.git'
     ]]]
     )
    }
  } catch (error) {
    throw error
  }


But I am getting the below error . I have configured credentials correctly(attached)


> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url <a href="https://githubent.abc.com/test/ops.git" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4r74rSSlRfZ_5v7NedXdjw-incg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4r74rSSlRfZ_5v7NedXdjw-incg&#39;;return true;">https://githubent.abc.com/test/ops.git # timeout=10
Fetching upstream changes from <a href="https://githubent.abc.com/test/ops.git" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4r74rSSlRfZ_5v7NedXdjw-incg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4r74rSSlRfZ_5v7NedXdjw-incg&#39;;return true;">https://githubent.abc.com/test/ops.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials cso-cv-tools
 > git fetch --tags --progress <a href="https://githubent.abc.com/test/ops.git" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4r74rSSlRfZ_5v7NedXdjw-incg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4r74rSSlRfZ_5v7NedXdjw-incg&#39;;return true;">https://githubent.abc.com/test/ops.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from <a href="https://githubent.abc.com/test/ops.git" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4r74rSSlRfZ_5v7NedXdjw-incg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4r74rSSlRfZ_5v7NedXdjw-incg&#39;;return true;">https://githubent.abc.com/test/ops.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
at hudson.security.ACL.impersonate(ACL.java:260)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress <a href="https://githubent.abc.com/test/ops.git" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4r74rSSlRfZ_5v7NedXdjw-incg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4r74rSSlRfZ_5v7NedXdjw-incg&#39;;return true;">https://githubent.abc.com/test/ops.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: error: The requested URL returned error: 403 Forbidden while accessing <a href="https://githubent.abc.com/test/ops.git/info/refs" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git%2Finfo%2Frefs\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG-iyKUAuivgHMarJKGktDiDMOagQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithubent.abc.com%2Ftest%2Fops.git%2Finfo%2Frefs\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG-iyKUAuivgHMarJKGktDiDMOagQ&#39;;return true;">https://githubent.abc.com/test/ops.git/info/refs

fatal: HTTP request failed

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1903)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1622)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:336)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
at ......remote call to jenkins-slave(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
at hudson.remoting.Channel.call(Channel.java:830)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
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:498)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
at com.sun.proxy.$Proxy81.execute(Unknown Source)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
... 13 more


Without using the credential option, if i use the github credential directly in url, it works fine

eg: 
node("jenkins-slave") {
  try {
    stage("Checkout") {  
     checkout([$class: 'GitSCM',
     branches: [[name: 'test']], 
     doGenerateSubmoduleConfigurations: false, 
     userRemoteConfigs: [[
                   url: '<a href="https://mygituser:2345s43534534543543adf234@githubent.abc.com/test/ops.git" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmygituser%3A2345s43534534543543adf234%40githubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGKfY4R0DaQR9eJVB95YSe014r13A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmygituser%3A2345s43534534543543adf234%40githubent.abc.com%2Ftest%2Fops.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGKfY4R0DaQR9eJVB95YSe014r13A&#39;;return true;">https://mygituser:2345s43534534543543adf234@githubent.abc.com/test/ops.git'
     ]]]
     )
    }
  } catch (error) {
    throw error
  }

Any help will be appreciated.

Thanks,
Hound 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/dd0e14c4-3b2b-4436-a607-0eac5d6d92e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Credentialid with github is not working in pipeline script on jenkins slave

Mark Waite-2


On Mon, Jul 10, 2017 at 11:51 PM Hound G <[hidden email]> wrote:
I am observing this issue with  freestyle job as well. Username & password (provided through credentials plugin) is not working with github git cloning.

If you're seeing it with multiple types of jobs, then it may indicate that there is some other issue.  Some possible issues might be:
  • Username or password contains an unexpected character - try with a username and password which only contains letters and digits, just to see if that is the problem
  • Communication from Jenkins agent to git server may be disrupted by a proxy - try cloning from a URL which embeds the username and password in the URL (as in https://username:password@hostname/path/to/repo).  If that fails, you may also be able to insert a shell build step or batch build step that performs a "git clone" command using the URL with the username and password embedded in the URL
  • Username or password is incorrect - double check that you can clone with that URL using that user name and password from a git command line
Mark Waite
 
Any help will be highly appreciated.

Thanks,
Hound 



On Friday, July 7, 2017 at 5:48:19 PM UTC-7, Hound G wrote:
I am testing pipeline configuration script with below code, 

#!groovy

node("jenkins-slave") {
  try {
    stage("Checkout") {  
     checkout([$class: 'GitSCM',
     branches: [[name: 'test']], 
     doGenerateSubmoduleConfigurations: false, 
     userRemoteConfigs: [[
         credentialsId: '6ad7b0af-30fd-4ca6-a80e-e629b5d7f212', 
     ]]]
     )
    }
  } catch (error) {
    throw error
  }


But I am getting the below error . I have configured credentials correctly(attached)


> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://githubent.abc.com/test/ops.git # timeout=10
Fetching upstream changes from https://githubent.abc.com/test/ops.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials cso-cv-tools
 > git fetch --tags --progress https://githubent.abc.com/test/ops.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from https://githubent.abc.com/test/ops.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
at hudson.security.ACL.impersonate(ACL.java:260)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress https://githubent.abc.com/test/ops.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: error: The requested URL returned error: 403 Forbidden while accessing https://githubent.abc.com/test/ops.git/info/refs

fatal: HTTP request failed

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1903)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1622)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:336)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
at ......remote call to jenkins-slave(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
at hudson.remoting.Channel.call(Channel.java:830)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
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:498)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
at com.sun.proxy.$Proxy81.execute(Unknown Source)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
... 13 more


Without using the credential option, if i use the github credential directly in url, it works fine

eg: 
node("jenkins-slave") {
  try {
    stage("Checkout") {  
     checkout([$class: 'GitSCM',
     branches: [[name: 'test']], 
     doGenerateSubmoduleConfigurations: false, 
     userRemoteConfigs: [[
     ]]]
     )
    }
  } catch (error) {
    throw error
  }

Any help will be appreciated.

Thanks,
Hound 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/dd0e14c4-3b2b-4436-a607-0eac5d6d92e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFHUQvZdbGB57sg3_D7%2Bok2d%2Be0tiJ1eSU80WQsnXrCCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...