如何通过jenkins中的特定更改集编号下载源代码


node{
stage('Source Control Management'){
checkout([
$class: 'TeamFoundationServerScm', 
credentialsConfigurer: [
$class: 'AutomaticCredentialsConfigurer'
],
projectPath: '$/Onprem/Source/Service',
serverUrl: 'http://abcd/',
useOverwrite: true,
useUpdate: true,
workspaceName: 'Hudson-${JOB_NAME}-${NODE_NAME}'
])
}
}

此管道脚本签出链集编号为921的最新代码我希望管道只签出链集编号为917的以前的代码该怎么办?

插件README说明了这一点,并描述了如何在Freestyle作业中做到这一点:使用versionspec参数指定受影响的项目版本。确认这在Freestyle作业中有效,但在管道中无效。此外,仅当提供了Build Parameter时才有效,而不是作为常规参数;古怪的

最新更新