TFS Checkout using Jenkins Pipeline

2.9k Views Asked by At

I have a requirement of TFS workspace mapping or checkout using Jenkins pipeline. I have the below code but getting connection timeout issue.

stage ("Checkout"){
            node("Nodename"){
                ws("D:/Windows/Checkout/") {
                    echo ("Checking out source code")
                    checkout([$class: 'TeamFoundationServerScm', credentialsConfigurer: [$class: 'AutomaticCredentialsConfigurer'], projectPath: '$/ProjectName', serverUrl: 'CollectionURL', useOverwrite: true, useUpdate: true, workspaceName: 'Hudson-${JOB_NAME}'])}}
                }

enter image description here

Any help or suggestion?

1

There are 1 best solutions below

1
Dinesh On BEST ANSWER

Thanks for your replies.

We found the issue is with the proxy configuration in Jenkins plugins.

Manage Jenkins -> Manage Plugins -> Advanced Tab

Under this We have the HTTP Proxy Configuration configured with proxy details. Once we removed it, checkout is happening as expected.

Thanks,

Dinesh.