2017-04-24 69 views

回答

0

是的,這是可能的。我從jenkins中每個管道作業的左側導航欄中的「Pipeline Syntax」鏈接中生成了以下步驟。樣本步驟是「Checkout:General SCM」,SCM是「Subversion」,從那裏您可以選擇「總是檢查新鮮副本」的「檢出策略」。

checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[credentialsId: '196ff1ff-c481-4d2e-922b-e32410f8ee13', depthOption: 'infinity', ignoreExternalsOption: true, local: '.', remote: 'https://mycompany.example.com/svn/MYREPO/crs/trunk']], workspaceUpdater: [$class: 'CheckoutUpdater']]) 

的關鍵部分是:

workspaceUpdater: [$class: 'CheckoutUpdater'] 

如果你不熟悉聲明你的工作將如何建立使用Jenkinsfile但(管道功能),檢查https://jenkins.io/doc/book/pipeline/。下面是「管道語法」鏈接是什麼樣子的資產淨值:

Screenshot showing link to Pipeline syntax

+0

謝謝你的迴應凱文,我可以以任何機會得到截圖請。我無法真正得到「管道語法」。 –

+0

我添加了一個截圖! – burnettk

+0

嗨凱文,這是我的詹金斯http://i.imgur.com/foD3KC4.png的截圖,看來我沒有這個管道。 –