tfsjenkins-pipelinevcs-checkout

TFS Checkout using Jenkins Pipeline


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?


Solution

  • 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.