是否有人有正确的
configure { ... }
Jenkins DSL插件中设置git稀疏 checkout 所需的块?
config.xml部分看起来如下所示:
<extensions>
<hudson.plugins.git.extensions.impl.CloneOption>
<shallow>false</shallow>
<reference>/build/jenkins/codebase.git</reference>
</hudson.plugins.git.extensions.impl.CloneOption>
<hudson.plugins.git.extensions.impl.SparseCheckoutPaths>
<sparseCheckoutPaths>
<hudson.plugins.git.extensions.impl.SparseCheckoutPath>
<path>BillOfMaterials.yml</path>
</hudson.plugins.git.extensions.impl.SparseCheckoutPath>
<hudson.plugins.git.extensions.impl.SparseCheckoutPath>
<path>jenkins/job/</path>
</hudson.plugins.git.extensions.impl.SparseCheckoutPath>
</sparseCheckoutPaths>
</hudson.plugins.git.extensions.impl.SparseCheckoutPaths>
</extensions>
4条答案
按热度按时间cbjzeqam1#
hgc7kmma2#
当前的Jenkins / Job DSL版本允许通过指定以下内容来生成多个稀疏 checkout 路径
ix0qys7i3#
除了“nbsp”给出的答案之外,我还必须添加以下粗体关键字(如果粗体不可见,则用双星号括起来)才能使其工作。希望这对某些人有所帮助。:)
ht4b089n4#
我使用DSL创建了一个带有共享库的文件夹