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

Bitbucket Server Integration Pipeline Step does not support GIT submodules

XMLWordPrintable

      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.

       

       

       

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

              Created:
              Updated:
              Resolved: