sparse checkout multiple repositories

瀏覽次數:46 次
跳到第一則未讀訊息

Manoj Chander

未讀,
2021年3月18日 清晨5:41:462021/3/18
收件者:Jenkins Users


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 

Mark Waite

未讀,
2021年3月18日 上午8:12:172021/3/18
收件者:Jenkins Users
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

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f5d19580-ef4b-45a2-87aa-3d1101f84ce1n%40googlegroups.com.

Manoj Chander

未讀,
2021年4月15日 凌晨12:00:422021/4/15
收件者:jenkins...@googlegroups.com
回覆所有人
回覆作者
轉寄
0 則新訊息