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

Bitbucket Server Integration Pipeline Step does not support GIT submodules

      The bbs_checkout: BitbucketSCMStep does not support Git Submodules

      Neither does the scm object if you use 'checkout scm' in your Jenkinsfile and set your sub-module properties up in the Jenkins Pipeline project properties.

      Funny thing is it works in the sandbox but not when used in a Jenkinsfile.

      When used from Jenkinsfile I get this error on checking out the sub-modules

      hudson.plugins.git.GitException: Command "git.exe submodule update --init --recursive External" returned status code 1:
      stdout:
      stderr: Cloning into 'C:/Jenkins/jobs/xxxxxx/jobs/HookTesting/jobs/TestDevelop/workspace@script/External'...

      git@bitbucket.XXX.com: Permission denied (publickey).
      fatal: Could not read from remote repository.

      Please make sure you have the correct access rights
      and the repository exists.

       

       

       

          [JENKINS-62645] Bitbucket Server Integration Pipeline Step does not support GIT submodules

          Hi Paul, thanks for the report.

          The error message looks like the sub-module you're using is trying to make use of a public key. As of right now the plugin does not support SSH credentials, but you can track the progress of that feature here: https://issues.jenkins-ci.org/browse/JENKINS-60492

          I will leave this issue open for now, and when SSH is completed we can revisit. Thanks again.

          Martin Henschke added a comment - Hi Paul, thanks for the report. The error message looks like the sub-module you're using is trying to make use of a public key. As of right now the plugin does not support SSH credentials, but you can track the progress of that feature here: https://issues.jenkins-ci.org/browse/JENKINS-60492 I will leave this issue open for now, and when SSH is completed we can revisit. Thanks again.

          Paul Fowler added a comment -

          Hi Martin,

          Thanks for the response. You are correct. Even though I am using username and password to clone the repo the .gitmodules are configured to use ssh. SSH support will fix this. Thanks Paul

          Paul Fowler added a comment - Hi Martin, Thanks for the response. You are correct. Even though I am using username and password to clone the repo the .gitmodules are configured to use ssh. SSH support will fix this. Thanks Paul

          Terrific. I'll close this for now in that case, but feel free to reopen if there are issues after SSH support is released.

          Martin Henschke added a comment - Terrific. I'll close this for now in that case, but feel free to reopen if there are issues after SSH support is released.

            Unassigned Unassigned
            pfowler Paul Fowler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: