Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75231

Bitbucket fails to checkout shared library using SSH after upgrade to 934.4.1

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 935.0.0

      After upgrading Bitbucket Branch Source plugin from 934.3.2 to 934.4.1, pipelines are unable to checkout shared libraries (using ssh username with private key credentials).

      Rolling back to 934.3.2 fixes the problem.

      Relevant pipeline execution log:

      Obtained Jenkinsfile from 94d0e48ab7d02974ad07acb2f648c7661d418ab6
      Loading library shared-libs@main
      Attempting to resolve main from remote references... 
      > git --version # timeout=10 
      > git --version # timeout=10
      using GIT_SSH to set credentials my-ssh-creds
      Verifying host key using known hosts file
      ERROR: Checkout failed
      java.io.IOException: error=2, No such file or directory
        at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
        at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
        at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
      Caused: java.io.IOException: Cannot run program "cp": error=2, No such file or directory
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
        at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.createNonBusyExecutable(CliGitAPIImpl.java:2745)
        at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.createUnixGitSSH(CliGitAPIImpl.java:2726)
        at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2120)
      Caused: hudson.plugins.git.GitException: Failed to setup credentials
        at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2186)
        at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2080)
        at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2071)
        at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteReferences(CliGitAPIImpl.java:3806)
        at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:885)
      Caused: java.io.IOException
        at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:887)
        at PluginClassLoader for scm-api//jenkins.scm.api.SCMSource.fetch(SCMSource.java:635)
        at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$retrieve$0(SCMSourceRetriever.java:75)
        at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMBasedRetriever.retrySCMOperation(SCMBasedRetriever.java:222)
        at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:75)
        at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:298)
        at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:157)
        at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
        at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087)
        at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624)
        at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
        at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
        at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
        at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163)
        at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190)
        at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175)
        at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:652)
        at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:598)
        at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
        at hudson.model.ResourceController.execute(ResourceController.java:101)
        at hudson.model.Executor.run(Executor.java:445)
      ERROR: Maximum checkout retry attempts reached, aborting
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:WorkflowScript: Loading libraries failed
      
      1 error
        at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309) 
        at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1107)
        at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624) 
        at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
        at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
        at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
        at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163)
        at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190)
        at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175)
        at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:652)
        at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:598)
        at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
        at hudson.model.ResourceController.execute(ResourceController.java:101)
        at hudson.model.Executor.run(Executor.java:445)
      

          [JENKINS-75231] Bitbucket fails to checkout shared library using SSH after upgrade to 934.4.1

          Pierre-Julien created issue -
          Pierre-Julien made changes -
          Environment Original: Jenkins: 2.479.3
          OS: Linux - 5.4.17-2136.338.4.1.el8uek.x86_64
          Java: 17.0.14 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)
          ---
          cloudbees-bitbucket-branch-source:934.4.1
          credentials:1405.vb_cda_74a_f8974
          credentials-binding:687.v619cb_15e923f
          git:5.7.0
          git-client:6.1.1
          scm-api:703.v72ff4b_259600
          New: Jenkins: 2.479.3
          OS: Linux - 5.4.17-2136.338.4.1.x86_64
          Java: 17.0.14 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)
          ---
          cloudbees-bitbucket-branch-source:934.4.1
          credentials:1405.vb_cda_74a_f8974
          credentials-binding:687.v619cb_15e923f
          git:5.7.0
          git-client:6.1.1
          scm-api:703.v72ff4b_259600
          Nikolas Falco made changes -
          Description Original: After upgrading Bitbucket Branch Source plugin from 934.3.2 to 934.4.1, pipelines are unable to checkout shared libraries (using ssh username with private key credentials).

          *Rolling back to 934.3.2 fixes the problem.*

          Relevant pipeline execution log:
          {code:java}
          Obtained Jenkinsfile from 94d0e48ab7d02974ad07acb2f648c7661d418ab6Loading library shared-libs@mainAttempting to resolve main from remote references... > git --version # timeout=10 > git --version # timeout=10using GIT_SSH to set credentials my-ssh-credsVerifying host key using known hosts fileERROR: Checkout failedjava.io.IOException: error=2, No such file or directory  at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)  at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)  at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)  at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)Caused: java.io.IOException: Cannot run program "cp": error=2, No such file or directory  at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)  at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)  at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.createNonBusyExecutable(CliGitAPIImpl.java:2745)  at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.createUnixGitSSH(CliGitAPIImpl.java:2726)  at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2120)Caused: hudson.plugins.git.GitException: Failed to setup credentials  at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2186)  at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2080)  at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2071)  at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteReferences(CliGitAPIImpl.java:3806)  at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:885)Caused: java.io.IOException  at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:887)  at PluginClassLoader for scm-api//jenkins.scm.api.SCMSource.fetch(SCMSource.java:635)  at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$retrieve$0(SCMSourceRetriever.java:75)  at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMBasedRetriever.retrySCMOperation(SCMBasedRetriever.java:222)  at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:75)  at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:298)  at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:157)  at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)  at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087)  at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624)  at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)  at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)  at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)  at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)  at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163)  at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190)  at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175)  at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:652)  at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:598)  at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)  at hudson.model.ResourceController.execute(ResourceController.java:101)  at hudson.model.Executor.run(Executor.java:445)ERROR: Maximum checkout retry attempts reached, abortingorg.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:WorkflowScript: Loading libraries failed
          1 error
            at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309)  at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1107)  at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624)  at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)  at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)  at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)  at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)  at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163)  at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190)  at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175)  at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:652)  at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:598)  at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)  at hudson.model.ResourceController.execute(ResourceController.java:101)  at hudson.model.Executor.run(Executor.java:445) {code}
          New: After upgrading Bitbucket Branch Source plugin from 934.3.2 to 934.4.1, pipelines are unable to checkout shared libraries (using ssh username with private key credentials).

          *Rolling back to 934.3.2 fixes the problem.*

          Relevant pipeline execution log:
          {code:java}
          Obtained Jenkinsfile from 94d0e48ab7d02974ad07acb2f648c7661d418ab6
          Loading library shared-libs@main
          Attempting to resolve main from remote references... 
          > git --version # timeout=10 
          > git --version # timeout=10
          using GIT_SSH to set credentials my-ssh-creds
          Verifying host key using known hosts file
          ERROR: Checkout failedjava.io.IOException: error=2, No such file or directory
            at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
            at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
            at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
            at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
          Caused: java.io.IOException: Cannot run program "cp": error=2, No such file or directory
            at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
            at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.createNonBusyExecutable(CliGitAPIImpl.java:2745)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.createUnixGitSSH(CliGitAPIImpl.java:2726)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2120)
          Caused: hudson.plugins.git.GitException: Failed to setup credentials
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2186)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2080)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2071)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteReferences(CliGitAPIImpl.java:3806)
            at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:885)
          Caused: java.io.IOException
            at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:887)
            at PluginClassLoader for scm-api//jenkins.scm.api.SCMSource.fetch(SCMSource.java:635)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$retrieve$0(SCMSourceRetriever.java:75)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMBasedRetriever.retrySCMOperation(SCMBasedRetriever.java:222)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:75)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:298)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:157)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
            at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087)
            at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624)
            at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
            at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
            at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
            at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
            at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:652)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:598)
            at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
            at hudson.model.ResourceController.execute(ResourceController.java:101)
            at hudson.model.Executor.run(Executor.java:445)
          ERROR: Maximum checkout retry attempts reached, abortingorg.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:WorkflowScript: Loading libraries failed
          1 error
            at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309) 
            at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1107)
            at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624) 
            at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
            at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
            at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
            at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
            at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:652)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:598)
            at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
            at hudson.model.ResourceController.execute(ResourceController.java:101)
            at hudson.model.Executor.run(Executor.java:445)
          {code}
          Pierre-Julien made changes -
          Environment Original: Jenkins: 2.479.3
          OS: Linux - 5.4.17-2136.338.4.1.x86_64
          Java: 17.0.14 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)
          ---
          cloudbees-bitbucket-branch-source:934.4.1
          credentials:1405.vb_cda_74a_f8974
          credentials-binding:687.v619cb_15e923f
          git:5.7.0
          git-client:6.1.1
          scm-api:703.v72ff4b_259600
          New: Repos hosted on Bitbucket Cloud

          Jenkins: 2.479.3
          OS: Linux - 5.4.17-2136.338.4.1.x86_64
          Java: 17.0.14 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)
          ---
          cloudbees-bitbucket-branch-source:934.4.1
          credentials:1405.vb_cda_74a_f8974
          credentials-binding:687.v619cb_15e923f
          git:5.7.0
          git-client:6.1.1
          scm-api:703.v72ff4b_259600
          Nikolas Falco made changes -
          Description Original: After upgrading Bitbucket Branch Source plugin from 934.3.2 to 934.4.1, pipelines are unable to checkout shared libraries (using ssh username with private key credentials).

          *Rolling back to 934.3.2 fixes the problem.*

          Relevant pipeline execution log:
          {code:java}
          Obtained Jenkinsfile from 94d0e48ab7d02974ad07acb2f648c7661d418ab6
          Loading library shared-libs@main
          Attempting to resolve main from remote references... 
          > git --version # timeout=10 
          > git --version # timeout=10
          using GIT_SSH to set credentials my-ssh-creds
          Verifying host key using known hosts file
          ERROR: Checkout failedjava.io.IOException: error=2, No such file or directory
            at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
            at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
            at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
            at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
          Caused: java.io.IOException: Cannot run program "cp": error=2, No such file or directory
            at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
            at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.createNonBusyExecutable(CliGitAPIImpl.java:2745)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.createUnixGitSSH(CliGitAPIImpl.java:2726)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2120)
          Caused: hudson.plugins.git.GitException: Failed to setup credentials
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2186)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2080)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2071)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteReferences(CliGitAPIImpl.java:3806)
            at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:885)
          Caused: java.io.IOException
            at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:887)
            at PluginClassLoader for scm-api//jenkins.scm.api.SCMSource.fetch(SCMSource.java:635)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$retrieve$0(SCMSourceRetriever.java:75)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMBasedRetriever.retrySCMOperation(SCMBasedRetriever.java:222)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:75)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:298)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:157)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
            at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087)
            at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624)
            at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
            at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
            at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
            at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
            at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:652)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:598)
            at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
            at hudson.model.ResourceController.execute(ResourceController.java:101)
            at hudson.model.Executor.run(Executor.java:445)
          ERROR: Maximum checkout retry attempts reached, abortingorg.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:WorkflowScript: Loading libraries failed
          1 error
            at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309) 
            at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1107)
            at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624) 
            at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
            at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
            at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
            at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
            at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:652)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:598)
            at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
            at hudson.model.ResourceController.execute(ResourceController.java:101)
            at hudson.model.Executor.run(Executor.java:445)
          {code}
          New: After upgrading Bitbucket Branch Source plugin from 934.3.2 to 934.4.1, pipelines are unable to checkout shared libraries (using ssh username with private key credentials).

          *Rolling back to 934.3.2 fixes the problem.*

          Relevant pipeline execution log:
          {code:java}
          Obtained Jenkinsfile from 94d0e48ab7d02974ad07acb2f648c7661d418ab6
          Loading library shared-libs@main
          Attempting to resolve main from remote references... 
          > git --version # timeout=10 
          > git --version # timeout=10
          using GIT_SSH to set credentials my-ssh-creds
          Verifying host key using known hosts file
          ERROR: Checkout failed
          java.io.IOException: error=2, No such file or directory
            at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
            at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
            at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
            at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
          Caused: java.io.IOException: Cannot run program "cp": error=2, No such file or directory
            at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
            at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.createNonBusyExecutable(CliGitAPIImpl.java:2745)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.createUnixGitSSH(CliGitAPIImpl.java:2726)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2120)
          Caused: hudson.plugins.git.GitException: Failed to setup credentials
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2186)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2080)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2071)
            at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteReferences(CliGitAPIImpl.java:3806)
            at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:885)
          Caused: java.io.IOException
            at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:887)
            at PluginClassLoader for scm-api//jenkins.scm.api.SCMSource.fetch(SCMSource.java:635)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$retrieve$0(SCMSourceRetriever.java:75)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMBasedRetriever.retrySCMOperation(SCMBasedRetriever.java:222)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:75)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:298)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:157)
            at PluginClassLoader for pipeline-groovy-lib//org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
            at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087)
            at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624)
            at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
            at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
            at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
            at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
            at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:652)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:598)
            at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
            at hudson.model.ResourceController.execute(ResourceController.java:101)
            at hudson.model.Executor.run(Executor.java:445)
          ERROR: Maximum checkout retry attempts reached, aborting
          org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:WorkflowScript: Loading libraries failed

          1 error
            at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309) 
            at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1107)
            at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624) 
            at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
            at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
            at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
            at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
            at PluginClassLoader for script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:652)
            at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:598)
            at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
            at hudson.model.ResourceController.execute(ResourceController.java:101)
            at hudson.model.Executor.run(Executor.java:445)
          {code}
          Nikolas Falco made changes -
          Summary Original: Bitbucket Branch source - SSH checkout error after upgrade to 934.4.1 New: Bitbucket fails to checkout shared library using SSH after upgrade to 934.4.1
          Pierre-Julien made changes -
          Attachment New: jenkins-shared-lib_config-screen_.png [ 63905 ]
          Hildebrand Soethoudt made changes -
          Attachment New: failing-pipeline.txt [ 63914 ]
          Nikolas Falco made changes -
          Released As New: 935.0.0
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            nfalco Nikolas Falco
            pjhoude Pierre-Julien
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: