I am pretty new in Jenkins and continuous integration.Here I mentioned the problem I faced while using groovy in Pipe line.
node('node-name')
{
stage 'Checkout code'
bat 'http://devtfsappd00.avi.com:8080/tfs/Example_DevCollection'
}
Just a very basic pipeline script. Which says :
'http:' is not recognized as an internal or external command, operable program or batch file. ERROR: script returned exit code 1 Finished: FAILURE
以下是从Jenkins管道脚本中从TFS检出文件的代码:
checkout([$class: 'TeamFoundationServerScm', credentialsConfigurer: [$class: 'AutomaticCredentialsConfigurer'], projectPath: '$/TFS/Server_Path', serverUrl: 'http://tfs-server-url/', useOverwrite: true, useUpdate: true, workspaceName: 'Hudson-${JOB_NAME}-${NODE_NAME}'])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.