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

Pipeline could not get new commit

XMLWordPrintable

      I create my Jenkins Pipeline using the blue ocean and select the git option.It works fine.But Pipeline job could not get new commit after restart Jenkins. I got an error in the log "ERROR: Could not determine exact tip revision of develop; falling back to nondeterministic checkout Checking out git https://**/**.git into **".

      I found this Multibranch Pipepine job to skip the checkout scm stage.

      A few logs are as follow:

      ...
      [Pipeline] node
      Running on sonar in /home/jenkins/jenkins-slave/workspace/pipeline-gitlab_develop-KUWDRGYI4UNFRAXPOOJVU2S62X3PAAWEEAD3LJI3SA7M4ZBPMAQQ
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (Declarative: Tool Install)
      [Pipeline] tool
      [Pipeline] envVarsForTool
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] withEnv
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (Build)
      [Pipeline] tool
      [Pipeline] envVarsForTool
      [Pipeline] withEnv
      [Pipeline] {
      [Pipeline] tool
      [Pipeline] sh
      [pipeline-gitlab_develop-KUWDRGYI4UNFRAXPOOJVU2S62X3PAAWEEAD3LJI3SA7M4ZBPMAQQ] Running shell script
      ...
      

      A normal job log is as follow:

      ...
      [Pipeline] node
      Running on trump in /var/lib/jenkins-slave/workspace/delivery-sample_master-Z6SYQRMHVVGZHWBCPIZ7AZIJBRXIERO5JR3DYIM6NRLMBYQ62XXQ
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (Declarative: Checkout SCM)
      [Pipeline] checkout
       > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > git config remote.origin.url https://git.rajax.me/houlong.yang/delivery-sample.git # timeout=10
      Fetching without tags
      Fetching upstream changes from https://**/*.git
       > git --version # timeout=10
      using GIT_ASKPASS to set credentials 
       > git fetch --no-tags --progress https://**/*.git +refs/heads/*:refs/remotes/origin/*
      Checking out Revision b3bf2b26981caab316fe55ae5b44c634a25af733 (master)
      Commit message: "trigger pipeline test"
       > git config core.sparsecheckout # timeout=10
       > git checkout -f b3bf2b26981caab316fe55ae5b44c634a25af733
       > git rev-list b3bf2b26981caab316fe55ae5b44c634a25af733 # timeout=10
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] stage
      [Pipeline] { (Declarative: Tool Install)
      ...
      

            xy_alan Alan Yang
            xy_alan Alan Yang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: