Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52916

Cannot use git pull using jenkine pipeline script

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • scm-api-plugin
    • None

      I am unable to pull the code from git while using Jenkins pipeline script. We have tried multiple scenarios but every time it clones from the repository

       

      Right Now we are using GITSCM:
      checkout([ $class: 'GitSCM',branches: [[name: "develop"]],

      poll:true,

      doGenerateSubmoduleConfigurations: false,

      extensions: [[$class: 'LocalBranch', localBranch: '**']],

      submoduleCfg: [],

      userRemoteConfigs: [[url: "https://IDT.git", credentialsId: "abe-efg-2dfr"]]])

       

      The script clones but it doesn't pull the latest code. Could you please advise how we can pull the latest code via GitScm in jenkins pipeline project?

       

      Regards

      Nick

       

       

       

            Unassigned Unassigned
            ngarwal01 Nick Aggarwal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: