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

Bitbucket-branch-source plugin does not support GIT submodules

    XMLWordPrintable

Details

    Description

      In case of gitSCMSource we can define submodule policies for the branch:

       

      submoduleOption {
       disableSubmodules(false)
       recursiveSubmodules(true)
       parentCredentials(true)
       trackingSubmodules(false)
       reference("")
       timeout(1)
      }

      bitbucketSCMSource does not support that so it's literally impossible to get things working without dirty hacks, like using sh("git submodule update --init"). Also it does require additional configuration of the target host, which is a completely bad thing.

       

      Related: 

      1. JENKINS-32658
      2. JENKINS-37658

      Attachments

        Issue Links

          Activity

            pshirshov P S created issue -
            pshirshov P S made changes -
            Field Original Value New Value
            Summary Bitbiclet-branch-source plugin does not support GIT submodules Bitbucket-branch-source plugin does not support GIT submodules
            pshirshov P S made changes -
            Description In case of gitSCMSource we can define submodule policies for the branch:

             
            {code:java}
            submoduleOption {
             disableSubmodules(false)
             recursiveSubmodules(true)
             parentCredentials(true)
             trackingSubmodules(false)
             reference("")
             timeout(1)
            }{code}
            bitbucketSCMSource does not support that so it's literally impossible to get things working without dirty hacks, like using sh("git submodule update --init"). Also it does require additional configuration of the target host, which is a completely bad thing.
            In case of gitSCMSource we can define submodule policies for the branch:

             
            {code:java}
            submoduleOption {
             disableSubmodules(false)
             recursiveSubmodules(true)
             parentCredentials(true)
             trackingSubmodules(false)
             reference("")
             timeout(1)
            }{code}
            bitbucketSCMSource does not support that so it's literally impossible to get things working without dirty hacks, like using sh("git submodule update --init"). Also it does require additional configuration of the target host, which is a completely bad thing.

             

            Related: 
             # JENKINS-32658
            pshirshov P S made changes -
            Description In case of gitSCMSource we can define submodule policies for the branch:

             
            {code:java}
            submoduleOption {
             disableSubmodules(false)
             recursiveSubmodules(true)
             parentCredentials(true)
             trackingSubmodules(false)
             reference("")
             timeout(1)
            }{code}
            bitbucketSCMSource does not support that so it's literally impossible to get things working without dirty hacks, like using sh("git submodule update --init"). Also it does require additional configuration of the target host, which is a completely bad thing.

             

            Related: 
             # JENKINS-32658
            In case of gitSCMSource we can define submodule policies for the branch:

             
            {code:java}
            submoduleOption {
             disableSubmodules(false)
             recursiveSubmodules(true)
             parentCredentials(true)
             trackingSubmodules(false)
             reference("")
             timeout(1)
            }{code}
            bitbucketSCMSource does not support that so it's literally impossible to get things working without dirty hacks, like using sh("git submodule update --init"). Also it does require additional configuration of the target host, which is a completely bad thing.

             

            Related: 
             # -JENKINS-32658-
             # JENKINS-37658
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-37658 [ JENKINS-37658 ]
            jordanlc Jordan Coll added a comment -

            I think this issue should be generalized for all advanced SCM behavior (clean/wipe workspace, reference repos, shallow clone, etc.)

            jordanlc Jordan Coll added a comment - I think this issue should be generalized for all advanced SCM behavior (clean/wipe workspace, reference repos, shallow clone, etc.)
            nfalco Nikolas Falco made changes -
            Comment [ I agree with [~jordanlc].
            We have the same needs for "clean after checkout", a lot of times I have to wipe out the workspace by hand connecting ssh to the jenkins node. I can not use GitPlugin in multibranch becuase this plugin is not able to restrict branches master and feature/*

            *This is a big deal.* ]
            nfalco Nikolas Falco added a comment -

            I agree with jordanlc.
            We have the same needs for "clean after checkout", a lot of times I have to wipe out the workspace by hand connecting ssh to the jenkins node. I can not use GitPlugin in multibranch becuase this plugin is not able to restrict branches master and feature/*

            This is a big deal.

            nfalco Nikolas Falco added a comment - I agree with jordanlc . We have the same needs for "clean after checkout", a lot of times I have to wipe out the workspace by hand connecting ssh to the jenkins node. I can not use GitPlugin in multibranch becuase this plugin is not able to restrict branches master and feature/* This is a big deal.

            Now fixed by the changes in JENKINS-43507

            stephenconnolly Stephen Connolly added a comment - Now fixed by the changes in JENKINS-43507
            stephenconnolly Stephen Connolly made changes -
            Link This issue duplicates JENKINS-43507 [ JENKINS-43507 ]
            stephenconnolly Stephen Connolly made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]

            People

              amuniz Antonio Muñiz
              pshirshov P S
              Votes:
              11 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: