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

The tag specified when downloading the code is inconsistent with the actual downloaded code branch.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • git-plugin
    • None
    • jenkins Jenkins 2.401.3
      git plugin 5.2.0

      1 def scmVars = checkout([$class: "GitSCM", branches: [[name: "${BRANCH}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: "CleanBeforeCheckout", deleteUntrackedNestedRepositories: true]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${CERT_ID}", url: "$CODE"]]])
      2 def scmVars = checkout scmGit(branches: [[name: "${BRANCH}"]], extensions: [[$class: "CleanBeforeCheckout", deleteUntrackedNestedRepositories: true]], userRemoteConfigs: [[credentialsId: "${CERT_ID}", url: "$CODE"]])

      Neither method can correctly identify the tag.

       

       

      The dramatic thing is that after I pulled the 5.2.0 hpi from the official version and deployed it again, it worked, but currently I am still using the 5.2.0 version.

      Another interesting thing is that the commit id I pulled cannot be found in the latest commits of all branches and tags.

       

      Another point is that I first created a branch and tag with the same name, and then deleted the branch.

          [JENKINS-72428] The tag specified when downloading the code is inconsistent with the actual downloaded code branch.

          bobo200128 created issue -
          bobo200128 made changes -
          Attachment New: 企业微信截图_17017743931135.png [ 61669 ]
          bobo200128 made changes -
          Description Original: 1 def scmVars = checkout([$class: "GitSCM", branches: [[name: "${BRANCH}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: "CleanBeforeCheckout", deleteUntrackedNestedRepositories: true]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${CERT_ID}", url: "$CODE"]]])
          2 def scmVars = checkout scmGit(branches: [[name: "${BRANCH}"]], extensions: [[$class: "CleanBeforeCheckout", deleteUntrackedNestedRepositories: true]], userRemoteConfigs: [[credentialsId: "${CERT_ID}", url: "$CODE"]])

          Neither method can correctly identify the tag.

           

          The dramatic thing is that after I pulled the 5.2.0 hpi from the official version and deployed it again, it worked, but currently I am still using the 5.2.0 version.
          New: 1 def scmVars = checkout([$class: "GitSCM", branches: [[name: "${BRANCH}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: "CleanBeforeCheckout", deleteUntrackedNestedRepositories: true]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${CERT_ID}", url: "$CODE"]]])
          2 def scmVars = checkout scmGit(branches: [[name: "${BRANCH}"]], extensions: [[$class: "CleanBeforeCheckout", deleteUntrackedNestedRepositories: true]], userRemoteConfigs: [[credentialsId: "${CERT_ID}", url: "$CODE"]])

          Neither method can correctly identify the tag.

           

           

          The dramatic thing is that after I pulled the 5.2.0 hpi from the official version and deployed it again, it worked, but currently I am still using the 5.2.0 version.

          Another interesting thing is that the commit id I pulled cannot be found in the latest commits of all branches and tags.

           
          bobo200128 made changes -
          Attachment New: 企业微信截图_17017745593110.png [ 61670 ]
          bobo200128 made changes -
          Attachment New: 企业微信截图_17017745958764.png [ 61671 ]
          bobo200128 made changes -
          Description Original: 1 def scmVars = checkout([$class: "GitSCM", branches: [[name: "${BRANCH}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: "CleanBeforeCheckout", deleteUntrackedNestedRepositories: true]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${CERT_ID}", url: "$CODE"]]])
          2 def scmVars = checkout scmGit(branches: [[name: "${BRANCH}"]], extensions: [[$class: "CleanBeforeCheckout", deleteUntrackedNestedRepositories: true]], userRemoteConfigs: [[credentialsId: "${CERT_ID}", url: "$CODE"]])

          Neither method can correctly identify the tag.

           

           

          The dramatic thing is that after I pulled the 5.2.0 hpi from the official version and deployed it again, it worked, but currently I am still using the 5.2.0 version.

          Another interesting thing is that the commit id I pulled cannot be found in the latest commits of all branches and tags.

           
          New: 1 def scmVars = checkout([$class: "GitSCM", branches: [[name: "${BRANCH}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: "CleanBeforeCheckout", deleteUntrackedNestedRepositories: true]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${CERT_ID}", url: "$CODE"]]])
          2 def scmVars = checkout scmGit(branches: [[name: "${BRANCH}"]], extensions: [[$class: "CleanBeforeCheckout", deleteUntrackedNestedRepositories: true]], userRemoteConfigs: [[credentialsId: "${CERT_ID}", url: "$CODE"]])

          Neither method can correctly identify the tag.

           

           

          The dramatic thing is that after I pulled the 5.2.0 hpi from the official version and deployed it again, it worked, but currently I am still using the 5.2.0 version.

          Another interesting thing is that the commit id I pulled cannot be found in the latest commits of all branches and tags.

           

          Another point is that I first created a branch and tag with the same name, and then deleted the branch.
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          bobo200128 made changes -
          Attachment New: Jenkinsfile111.txt [ 61683 ]
          bobo200128 made changes -
          Attachment New: 企业微信截图_17018324165070.png [ 61684 ]
          bobo200128 made changes -
          Attachment New: 企业微信截图_17018324851358.png [ 61685 ]
          bobo200128 made changes -
          Attachment New: 企业微信截图_17018325311910.png [ 61686 ]

            Unassigned Unassigned
            bobo200128 bobo200128
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: