0

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?

Zoe
  • 27,060
  • 21
  • 118
  • 148
Dinesh
  • 117
  • 3
  • 9

1 Answers1

0

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.

Dinesh
  • 117
  • 3
  • 9
  • Since this issue was resolved, you could accept it as an answer.This can be beneficial to other community members reading this thread. – Andy Li-MSFT May 04 '18 at 09:39