sparse checkout multiple repositories

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

sparse checkout multiple repositories

Manoj Chander


Hi Is it possible to sparse checkout multiple repositories from git .

i want to check out specific folder alone from each project ? 

node('ATLAS && Linux')

{ dir('CalibrationResults')
              { git url: 'https://github.com/AtlasBID/CalibrationResults.git' } 

  dir('Combination') 
                   { git url: 'https://github.com/AtlasBID/Combination.git' } dir('CombinationBuilder') 
                    { git url: 'https://github.com/AtlasBID/CombinationBuilder.git' } sh('ls') sh('. CombinationBuilder/build.sh') }


Regards ,
Manoj 

--
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/f5d19580-ef4b-45a2-87aa-3d1101f84ce1n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: sparse checkout multiple repositories

Mark Waite-2
Yes, it is possible.  You'll need to use the "checkout" step rather than the "git" step.

The documentation for the "git" step (in the online help of your Jenkins installation and on jenkins.io) says:

NOTE: The checkout step is the preferred SCM checkout method. It provides significantly more functionality than the git step.

The checkout step can be used in many cases where the git step cannot be used. Refer to the git plugin documentation for detailed descriptions of options available to the checkout step. For example, the git step does not support:

  • SHA-1 checkout
  • Tag checkout
  • Submodule checkout
  • Sparse checkout

On Thu, Mar 18, 2021 at 3:41 AM Manoj Chander <[hidden email]> wrote:


Hi Is it possible to sparse checkout multiple repositories from git .

i want to check out specific folder alone from each project ? 

node('ATLAS && Linux')

{ dir('CalibrationResults')
              { git url: 'https://github.com/AtlasBID/CalibrationResults.git' } 

  dir('Combination') 
                   { git url: 'https://github.com/AtlasBID/Combination.git' } dir('CombinationBuilder') 
                    { git url: 'https://github.com/AtlasBID/CombinationBuilder.git' } sh('ls') sh('. CombinationBuilder/build.sh') }


Regards ,
Manoj 

--
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/f5d19580-ef4b-45a2-87aa-3d1101f84ce1n%40googlegroups.com.

--
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/CAO49JtFG-07iiTWTcqajk1Df3Rf2Th6DudkxMG5uTrpFeJrJJw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: sparse checkout multiple repositories

Manoj Chander
Thanks mark

On Thu, 18 Mar 2021, 17:42 Mark Waite, <[hidden email]> wrote:
Yes, it is possible.  You'll need to use the "checkout" step rather than the "git" step.

The documentation for the "git" step (in the online help of your Jenkins installation and on jenkins.io) says:

NOTE: The checkout step is the preferred SCM checkout method. It provides significantly more functionality than the git step.

The checkout step can be used in many cases where the git step cannot be used. Refer to the git plugin documentation for detailed descriptions of options available to the checkout step. For example, the git step does not support:

  • SHA-1 checkout
  • Tag checkout
  • Submodule checkout
  • Sparse checkout

On Thu, Mar 18, 2021 at 3:41 AM Manoj Chander <[hidden email]> wrote:


Hi Is it possible to sparse checkout multiple repositories from git .

i want to check out specific folder alone from each project ? 

node('ATLAS && Linux')

{ dir('CalibrationResults')
              { git url: 'https://github.com/AtlasBID/CalibrationResults.git' } 

  dir('Combination') 
                   { git url: 'https://github.com/AtlasBID/Combination.git' } dir('CombinationBuilder') 
                    { git url: 'https://github.com/AtlasBID/CombinationBuilder.git' } sh('ls') sh('. CombinationBuilder/build.sh') }


Regards ,
Manoj 

--
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/f5d19580-ef4b-45a2-87aa-3d1101f84ce1n%40googlegroups.com.

--
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/CAO49JtFG-07iiTWTcqajk1Df3Rf2Th6DudkxMG5uTrpFeJrJJw%40mail.gmail.com.

--
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/CAGQNZuRSB9tHs44Pxd40gq4JoYrAwauM41SLwgK%3DhtmnhcD_tA%40mail.gmail.com.