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

checkout scm fails silently after "Could not determine exact tip revision of <branch>" in logs

      This Pipeline:

      pipeline {
          agent none
          options {
              buildDiscarder(logRotator(numToKeepStr: '10'))
              timeout(time: 1, unit: 'HOURS')
          }
          stages {
              stage('Test') {
                  failFast true
                  parallel {
                      stage('Debian Linux') {
                          agent { docker 'maven:slim' }
                          steps {
                              checkout scm
                              sh 'mvn test -B'
                          }
                          post {
                              always {
                                  junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true
                                  archiveArtifacts artifacts: '**/*.jar', fingerprint: true
                              }
                          }
                      }
                      stage('Alpine Linux') {
                          agent { docker 'maven:3-alpine' }
                          steps {
                              checkout scm
                              sh 'mvn test -B'
                          }
                          post {
                              always {
                                  junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true
                                  archiveArtifacts artifacts: '**/*.jar', fingerprint: true
                              }
                          }
                      }
                      stage('FreeBSD 11') {
                          agent { label 'freebsd' }
                          steps {
                              echo 'Code Valet does not currently support Maven on FreeBSD'
                          }
                      }
                  }
              }
          }
      }
      

      Doesn't seem to actually execute anything, here's the raw output of the run:

      Started by user R. Tyler Croy
      ERROR: Could not determine exact tip revision of defaults; falling back to nondeterministic checkout
      Checking out git https://github.com/rtyler/joni.git into /var/jenkins_home/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@script to read Jenkinsfile
      Fetching changes from the remote Git repository
      Fetching without tags
      Checking out Revision 63d07e3559aece171ec6b7e5f4a595155ab99ac2 (origin/defaults)
      Commit message: "@abayer says to try this"
      Loading library pipeline-library@master
      Attempting to resolve master from remote references...
      Found match: refs/heads/master revision fecdabab952e9647b513c91367202e22e5161981
      Fetching changes from the remote Git repository
      Fetching without tags
      Checking out Revision fecdabab952e9647b513c91367202e22e5161981 (master)
      Commit message: "Make sure we check out scm, duh"
      Loading library inline-pipeline-secrets@master
      Attempting to resolve master from remote references...
      Found match: refs/heads/master revision 0b1840825b47d0a207151c22d49259b42f208728
      Fetching changes from the remote Git repository
      Fetching without tags
      Checking out Revision 0b1840825b47d0a207151c22d49259b42f208728 (master)
      Commit message: "Here be dragons"
      [Pipeline] timeout
      Timeout set to expire in 1 hr 0 min
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (Test)
      [Pipeline] parallel
      [Pipeline] [Debian Linux] { (Branch: Debian Linux)
      [Pipeline] [Alpine Linux] { (Branch: Alpine Linux)
      [Pipeline] [FreeBSD 11] { (Branch: FreeBSD 11)
      [Pipeline] [Debian Linux] stage
      [Pipeline] [Debian Linux] { (Debian Linux)
      [Pipeline] [Alpine Linux] stage
      [Pipeline] [Alpine Linux] { (Alpine Linux)
      [Pipeline] [FreeBSD 11] stage
      [Pipeline] [FreeBSD 11] { (FreeBSD 11)
      [Pipeline] [FreeBSD 11] node
      [Pipeline] [Debian Linux] node
      [Debian Linux] Running on docker-ubuntuab9e60 in /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ
      [Pipeline] [Alpine Linux] node
      [Pipeline] [Debian Linux] {
      [Pipeline] [Debian Linux] sh
      [Debian Linux] [joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ] Running shell script
      [Debian Linux] + docker inspect -f . maven:slim
      [Debian Linux] 
      [Debian Linux] Error: No such object: maven:slim
      [Pipeline] [Debian Linux] sh
      [Debian Linux] [joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ] Running shell script
      [Debian Linux] + docker pull maven:slim
      [Debian Linux] slim: Pulling from library/maven
      [Debian Linux] e7bb522d92ff: Pulling fs layer
      [Debian Linux] acf3a7df1b51: Pulling fs layer
      [Debian Linux] c1c98005fcff: Pulling fs layer
      [Debian Linux] 39dcc90226db: Pulling fs layer
      [Debian Linux] 23649b2102b0: Pulling fs layer
      [Debian Linux] dc6f0e3cd819: Pulling fs layer
      [Debian Linux] a1b832f08af6: Pulling fs layer
      [Debian Linux] 85571d835004: Pulling fs layer
      [Debian Linux] 26c8abdc6384: Pulling fs layer
      [Debian Linux] d11ca4afc9f8: Pulling fs layer
      [Debian Linux] 39dcc90226db: Waiting
      [Debian Linux] 23649b2102b0: Waiting
      [Debian Linux] dc6f0e3cd819: Waiting
      [Debian Linux] a1b832f08af6: Waiting
      [Debian Linux] 85571d835004: Waiting
      [Debian Linux] 26c8abdc6384: Waiting
      [Debian Linux] d11ca4afc9f8: Waiting
      [Debian Linux] c1c98005fcff: Verifying Checksum
      [Debian Linux] c1c98005fcff: Download complete
      [Debian Linux] acf3a7df1b51: Verifying Checksum
      [Debian Linux] acf3a7df1b51: Download complete
      [Debian Linux] e7bb522d92ff: Verifying Checksum
      [Debian Linux] e7bb522d92ff: Download complete
      [Debian Linux] 39dcc90226db: Verifying Checksum
      [Debian Linux] 39dcc90226db: Download complete
      [Debian Linux] dc6f0e3cd819: Download complete
      [Debian Linux] a1b832f08af6: Verifying Checksum
      [Debian Linux] a1b832f08af6: Download complete
      [Debian Linux] 85571d835004: Verifying Checksum
      [Debian Linux] 85571d835004: Download complete
      [Debian Linux] 26c8abdc6384: Verifying Checksum
      [Debian Linux] 26c8abdc6384: Download complete
      [Debian Linux] d11ca4afc9f8: Download complete
      [Debian Linux] 23649b2102b0: Verifying Checksum
      [Debian Linux] 23649b2102b0: Download complete
      [Debian Linux] e7bb522d92ff: Pull complete
      [Debian Linux] acf3a7df1b51: Pull complete
      [Debian Linux] c1c98005fcff: Pull complete
      [Debian Linux] 39dcc90226db: Pull complete
      [Debian Linux] 23649b2102b0: Pull complete
      [Debian Linux] dc6f0e3cd819: Pull complete
      [Debian Linux] a1b832f08af6: Pull complete
      [Debian Linux] 85571d835004: Pull complete
      [Debian Linux] 26c8abdc6384: Pull complete
      [Debian Linux] d11ca4afc9f8: Pull complete
      [Debian Linux] Digest: sha256:029478613539ddc6ed15bb267e60285500fdd2a505aa08479583d481a6ba5a20
      [Debian Linux] Status: Downloaded newer image for maven:slim
      [FreeBSD 11] Still waiting to schedule task
      [FreeBSD 11] freebsd-11-3a49c0 is offline
      [Alpine Linux] Still waiting to schedule task
      [Alpine Linux] Waiting for next available executor on docker
      [Pipeline] [Debian Linux] withDockerContainer
      [Debian Linux] docker-ubuntuab9e60 does not seem to be running inside a container
      [Debian Linux] $ docker run -t -d -u 1000:1000 -w /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ -v /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ:/home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ:rw,z -v /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@tmp:/home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat maven:slim
      [Pipeline] [Debian Linux] {
      Post stage
      [Pipeline] [Debian Linux] junit
      [Debian Linux] Recording test results
      [Pipeline] [Debian Linux] archiveArtifacts
      [Debian Linux] Archiving artifacts
      [Pipeline] [Debian Linux] }
      [Debian Linux] $ docker stop --time=1 0e293d2e7e2c7658f2453c28be97784ebc685ba457b8041c72456a4d3d4f4f71
      [Debian Linux] $ docker rm -f 0e293d2e7e2c7658f2453c28be97784ebc685ba457b8041c72456a4d3d4f4f71
      [Pipeline] [Debian Linux] // withDockerContainer
      [Alpine Linux] Running on docker-ubuntuab9e60 in /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ
      [Pipeline] [Debian Linux] }
      [Pipeline] [Debian Linux] // node
      [Pipeline] [Alpine Linux] {
      [Pipeline] [Debian Linux] }
      [Pipeline] [Debian Linux] // stage
      [Pipeline] [Debian Linux] }
      [Debian Linux] Failed in branch Debian Linux
      [Pipeline] [Alpine Linux] }
      [Pipeline] [FreeBSD 11] // node
      [Pipeline] [Alpine Linux] // node
      [Pipeline] [Alpine Linux] }
      [Pipeline] [FreeBSD 11] }
      [Pipeline] [Alpine Linux] // stage
      [Pipeline] [FreeBSD 11] // stage
      [Pipeline] [Alpine Linux] }
      [Alpine Linux] Failed in branch Alpine Linux
      [Pipeline] [FreeBSD 11] }
      [FreeBSD 11] Failed in branch FreeBSD 11
      [Pipeline] // parallel
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] }
      [Pipeline] // timeout
      [Pipeline] End of Pipeline
      ERROR: Could not determine exact tip revision of defaults
      Finished: ABORTED
      

      Plugins built into Code Valet:

      build/repos/apache-httpcomponents-client-4-api-plugin,b632272042139465076fa378e81f3fee729f885f
      build/repos/authentication-tokens-plugin,2a38368d4d9f61a6db0fde5b2f551293fc659cfe
      build/repos/azure-commons-plugin,b585a8f787f57e5552063db224e04a54454c1c87
      build/repos/azure-credentials-plugin,6ea5592773ad84f2f48854d1c611e1a529a22a9d
      build/repos/azure-vm-agents-plugin,e92e1955107b74be9536be2f57d1025966f9dde8
      build/repos/blueocean-autofavorite-plugin,0ddd2f7ea21c83d11a994ae569c56f970e7ba926
      build/repos/blueocean-display-url-plugin,d6515117712c9b30a32f32bb6e1a977711b9b037
      build/repos/blueocean-plugin,bb34e738f8430643086cdc8ac686d681ec90f9e1
      build/repos/branch-api-plugin,661e921eef2977970585829a691cbc0595dffea1
      build/repos/cloudbees-bitbucket-branch-source-plugin,b34bd66c7db1ce4f8b2abeb719530d7f7468cbc4
      build/repos/cloudbees-folder-plugin,afddb64d3704a3a7d2a87f8280f8748416b77b2d
      build/repos/cloud-stats-plugin,701ba1e7bf000e05fa5b436961f6125fbafa2e7c
      build/repos/credentials-binding-plugin,4d6f4c44baaa5aa1dd82a7b64ce4d8990a43d2fe
      build/repos/credentials-plugin,412ee9702029dc48bb7406fa9318ef8f2fc49b76
      build/repos/datadog-plugin,accf6ab44532c79613347416d5397c4156572cd4
      build/repos/display-url-api-plugin,e00542dea8bd0ee339863a11f5b61b872c3eacbd
      build/repos/docker-commons-plugin,b34c6f3ca4216eb66b09af6eef73db5f3c33adc2
      build/repos/docker-workflow-plugin,0e95d9409eb7d219dd9f4f37383c5321c630b889
      build/repos/durable-task-plugin,275ad653f71d89008ff061f6d8133d6684dcb1ad
      build/repos/embeddable-build-status-plugin,df555760b1a669a9acd558c5a498970bcf7febbe
      build/repos/favorite-plugin,08dcfd6b4fcb2b7c25efdf9ae995d0fedb8acdc2
      build/repos/git-client-plugin,5526a61878c1c789b545e0a81eecac859aca87b6
      build/repos/github-api-plugin,182e264acf362cf973362988cdfb24cb74738fab
      build/repos/github-branch-source-plugin,08b3d320281c74ef41c4d8ee064623fa75179c1d
      build/repos/github-oauth-plugin,5ad606efeedfd9ede0cbde31ec608ea1ba90ced1
      build/repos/github-plugin,68ceb5960549c6a5ce55c5288c7eaabbbb3719a2
      build/repos/git-plugin,828ca74769783d2ccd2c16ce038a87cacc66e140
      build/repos/git-server-plugin,1762ba8ccf3c7a46a607b912736912b784a63524
      build/repos/htmlpublisher-plugin,f187d56a4cd3fdcba69d0abc9deaac5be072d2d5
      build/repos/jackson2-api-plugin,74355ea21dacf9e948724d10c9abca0e2c3296bf
      build/repos/jira-plugin,4c7dcde762b55beca74176ec5e837d1784a81ae7
      build/repos/jsch-plugin,dfa3a710c4827896269302503ae86ae026d202f0
      build/repos/js-libs-plugin,79ca191724036878a88f13325851af14b0c70452
      build/repos/junit-plugin,0061cf267c63f6bb64bc165f395e01c0c8c38fd5
      build/repos/kubernetes-plugin,ec7d74f8782941d2b146193ebb14ae6ef5da9a46
      build/repos/lockable-resources-plugin,14b1abaddf441da9a20e8b1e0d94844550529a1e
      build/repos/mailer-plugin,18b8274e1a31b60d7e20492f1ecfa39483b90b37
      build/repos/matrix-auth-plugin,9c859ed3ea932024e73f665400457cbf106b8dcf
      build/repos/matrix-project-plugin,9e4d3bf904094986ea111a90a0c2c14019e2dd7f
      build/repos/mercurial-plugin,f6e5f0bff2d8678c0e7cb13d0db031b45c7a0437
      build/repos/pipeline-build-step-plugin,2e4012ecac352d248ca42feaa18c59aabfe2fa2c
      build/repos/pipeline-graph-analysis-plugin,7ea371dc90fef8e4f0627a365320fceec67f089f
      build/repos/pipeline-input-step-plugin,7aea2abf486438200cb1ae3fb553311d7ced11e0
      build/repos/pipeline-milestone-step-plugin,f7ef68f74aa1e923bb6ca3cdd10541fa6040f123
      build/repos/pipeline-model-definition-plugin,32c5e4178c89faca3ad184b4030d8f403425bdac
      build/repos/pipeline-stage-step-plugin,addb287b9d5b81f3d4ab3b15fb6dd33e7370062a
      build/repos/pipeline-stage-view-plugin,f5ce1f768457c7ff18408e6a54cb84f47a6a4ed8
      build/repos/plain-credentials-plugin,da51ba8703eefb201f3f6c4f4da3714fb83a37d6
      build/repos/pubsub-light-plugin,e374bc0248f37f6572e87913bf0c27cbf5b75d53
      build/repos/scm-api-plugin,45818a22f9d9846cfeb13d9c3f37d0b0dba15e04
      build/repos/script-security-plugin,38e6f6f7850b539a9a430d6ce5fd8c2e146a3181
      build/repos/sentry-plugin,a29347c83966fa0068a3c00af3fefcd9f19ed329
      build/repos/sse-gateway-plugin,685c6c709c96aa63f7d781c0df9060b9928e8b41
      build/repos/ssh-credentials-plugin,55e3d318eeddd52575b2ed632aa3841ba3b4834e
      build/repos/structs-plugin,eb9c1d5d5b1a9794925b62e17b9b4b1ee2113b13
      build/repos/token-macro-plugin,4d24aa5716f8d84e236824ab36d87c90a9897e8d
      build/repos/variant-plugin,3688261cf3c030b3eed603cf96e4758f79b569ac
      build/repos/workflow-aggregator-plugin,d67c39534f908f8432b44e588b0350b064e86bb5
      build/repos/workflow-api-plugin,bbab9280f0ce01988173ade26f8f349b14494499
      build/repos/workflow-basic-steps-plugin,3a464997109f0814f2399d15a2730e49ad74651c
      build/repos/workflow-cps-global-lib-plugin,aaa7ed1e04ce2ef751b2a770e71f0286c509ddc6
      build/repos/workflow-cps-plugin,861996956e7f931d6190af28fa0c0083d09b1d4d
      build/repos/workflow-durable-task-step-plugin,603b62f65ac5796a80b5598685b34ac30a644885
      build/repos/workflow-job-plugin,f3f45712196c9bea60101dbc8b804f6309f69cf2
      build/repos/workflow-multibranch-plugin,c49261f827d032a637475071ba6742f0c40a8653
      build/repos/workflow-scm-step-plugin,b9e8530ca4173b499a17af0468deace17139d458
      build/repos/workflow-step-api-plugin,0b984e5df55b88c39efb9a649e226fba48f5cb8f
      build/repos/workflow-support-plugin,5146dbf08bf4cfe84de9c6744ddfd18e5827b243
      

          [JENKINS-48571] checkout scm fails silently after "Could not determine exact tip revision of <branch>" in logs

          R. Tyler Croy created issue -

          Michael Neale added a comment -

          oh this is a good one

          Michael Neale added a comment - oh this is a good one

          R. Tyler Croy added a comment -

          I don't think parallel has anything to do with this, I think something in either the docker pipeline master branch, or declarative master branch is broken.

          pipeline {
              agent none
              options {
                  buildDiscarder(logRotator(numToKeepStr: '10'))
                  timeout(time: 1, unit: 'HOURS')
              }
              stages {
                  stage('Debian Linux') {
                      agent { docker 'maven:slim' }
                      steps {
                          checkout scm
                          sh 'mvn test -B'
                      }
                      post {
                          always {
                              junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true
                              archiveArtifacts artifacts: '**/*.jar', fingerprint: true
                          }
                      }
                  }
                  stage('Alpine Linux') {
                      agent { docker 'maven:3-alpine' }
                      steps {
                          checkout scm
                          sh 'mvn test -B'
                      }
                      post {
                          always {
                              junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true
                              archiveArtifacts artifacts: '**/*.jar', fingerprint: true
                          }
                      }
                  }
                  stage('FreeBSD 11') {
                      agent { label 'freebsd' }
                      steps {
                          echo 'Code Valet does not currently support Maven on FreeBSD'
                      }
                  }
              }
          }
          
          Started by user R. Tyler Croy
          ERROR: Could not determine exact tip revision of defaults; falling back to nondeterministic checkout
          Checking out git https://github.com/rtyler/joni.git into /var/jenkins_home/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@script to read Jenkinsfile
          Fetching changes from the remote Git repository
          Fetching without tags
          Checking out Revision b7c73a1b840e43bbc23e520112f98d6805cbeecf (origin/defaults)
          Commit message: "Linear Pipeline for testing"
          Loading library pipeline-library@master
          Attempting to resolve master from remote references...
          Found match: refs/heads/master revision cc8272a3a18c24736625675fb0edd64622fff689
          Fetching changes from the remote Git repository
          Fetching without tags
          Checking out Revision cc8272a3a18c24736625675fb0edd64622fff689 (master)
          Commit message: "Don't do parallel by default until JENKINS-48571 is fixed"
          Loading library inline-pipeline-secrets@master
          Attempting to resolve master from remote references...
          Found match: refs/heads/master revision 0b1840825b47d0a207151c22d49259b42f208728
          Fetching changes from the remote Git repository
          Fetching without tags
          Checking out Revision 0b1840825b47d0a207151c22d49259b42f208728 (master)
          Commit message: "Here be dragons"
          [Pipeline] timeout
          Timeout set to expire in 1 hr 0 min
          [Pipeline] {
          [Pipeline] stage
          [Pipeline] { (Debian Linux)
          [Pipeline] node
          Running on docker-ubuntuab9e60 in /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ
          [Pipeline] {
          [Pipeline] sh
          [joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ] Running shell script
          + docker inspect -f . maven:slim
          .
          [Pipeline] withDockerContainer
          docker-ubuntuab9e60 does not seem to be running inside a container
          $ docker run -t -d -u 1000:1000 -w /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ -v /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ:/home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ:rw,z -v /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@tmp:/home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat maven:slim
          [Pipeline] {
          Post stage
          [Pipeline] junit
          Recording test results
          [Pipeline] archiveArtifacts
          Archiving artifacts
          [Pipeline] }
          $ docker stop --time=1 f72b31232b49ea5635e77a3adf5d0ab0b8cc84b3ec08d6893cd8832169cea0ae
          $ docker rm -f f72b31232b49ea5635e77a3adf5d0ab0b8cc84b3ec08d6893cd8832169cea0ae
          [Pipeline] // withDockerContainer
          [Pipeline] }
          [Pipeline] // node
          [Pipeline] }
          [Pipeline] // stage
          [Pipeline] stage
          [Pipeline] { (Alpine Linux)
          Stage 'Alpine Linux' skipped due to earlier failure(s)
          [Pipeline] }
          [Pipeline] // stage
          [Pipeline] stage
          [Pipeline] { (FreeBSD 11)
          Stage 'FreeBSD 11' skipped due to earlier failure(s)
          [Pipeline] }
          [Pipeline] // stage
          [Pipeline] }
          [Pipeline] // timeout
          [Pipeline] End of Pipeline
          ERROR: Could not determine exact tip revision of defaults
          Finished: FAILURE
          
          

          R. Tyler Croy added a comment - I don't think parallel has anything to do with this, I think something in either the docker pipeline master branch, or declarative master branch is broken. pipeline { agent none options { buildDiscarder(logRotator(numToKeepStr: '10' )) timeout(time: 1, unit: 'HOURS' ) } stages { stage( 'Debian Linux' ) { agent { docker 'maven:slim' } steps { checkout scm sh 'mvn test -B' } post { always { junit testResults: '**/surefire-reports /**/ *.xml' , allowEmptyResults: true archiveArtifacts artifacts: '**/*.jar' , fingerprint: true } } } stage( 'Alpine Linux' ) { agent { docker 'maven:3-alpine' } steps { checkout scm sh 'mvn test -B' } post { always { junit testResults: '**/surefire-reports /**/ *.xml' , allowEmptyResults: true archiveArtifacts artifacts: '**/*.jar' , fingerprint: true } } } stage( 'FreeBSD 11' ) { agent { label 'freebsd' } steps { echo 'Code Valet does not currently support Maven on FreeBSD' } } } } Started by user R. Tyler Croy ERROR: Could not determine exact tip revision of defaults; falling back to nondeterministic checkout Checking out git https: //github.com/rtyler/joni.git into / var /jenkins_home/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@script to read Jenkinsfile Fetching changes from the remote Git repository Fetching without tags Checking out Revision b7c73a1b840e43bbc23e520112f98d6805cbeecf (origin/defaults) Commit message: "Linear Pipeline for testing" Loading library pipeline-library@master Attempting to resolve master from remote references... Found match: refs/heads/master revision cc8272a3a18c24736625675fb0edd64622fff689 Fetching changes from the remote Git repository Fetching without tags Checking out Revision cc8272a3a18c24736625675fb0edd64622fff689 (master) Commit message: "Don't do parallel by default until JENKINS-48571 is fixed" Loading library inline-pipeline-secrets@master Attempting to resolve master from remote references... Found match: refs/heads/master revision 0b1840825b47d0a207151c22d49259b42f208728 Fetching changes from the remote Git repository Fetching without tags Checking out Revision 0b1840825b47d0a207151c22d49259b42f208728 (master) Commit message: "Here be dragons" [Pipeline] timeout Timeout set to expire in 1 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Debian Linux) [Pipeline] node Running on docker-ubuntuab9e60 in /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ [Pipeline] { [Pipeline] sh [joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ] Running shell script + docker inspect -f . maven:slim . [Pipeline] withDockerContainer docker-ubuntuab9e60 does not seem to be running inside a container $ docker run -t -d -u 1000:1000 -w /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ -v /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ:/home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ:rw,z -v /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@tmp:/home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat maven:slim [Pipeline] { Post stage [Pipeline] junit Recording test results [Pipeline] archiveArtifacts Archiving artifacts [Pipeline] } $ docker stop --time=1 f72b31232b49ea5635e77a3adf5d0ab0b8cc84b3ec08d6893cd8832169cea0ae $ docker rm -f f72b31232b49ea5635e77a3adf5d0ab0b8cc84b3ec08d6893cd8832169cea0ae [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Alpine Linux) Stage 'Alpine Linux' skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (FreeBSD 11) Stage 'FreeBSD 11' skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timeout [Pipeline] End of Pipeline ERROR: Could not determine exact tip revision of defaults Finished: FAILURE

          R. Tyler Croy added a comment -

          An even simpler example:

          pipeline {
              agent { docker 'maven:slim' }
              options {
                  buildDiscarder(logRotator(numToKeepStr: '10'))
                  timeout(time: 1, unit: 'HOURS')
              }
              stages {
                  stage('Debian Linux') {
                      steps {
                          checkout scm
                          sh 'mvn test -B'
                      }
                      post {
                          always {
                              junit testResults: '**/surefire-reports/**/*.xml', allowEmptyResults: true
                              archiveArtifacts artifacts: '**/*.jar', fingerprint: true
                          }
                      }
                  }
              }
          }
          
          
          Started by user R. Tyler Croy
          ERROR: Could not determine exact tip revision of defaults; falling back to nondeterministic checkout
          Checking out git https://github.com/rtyler/joni.git into /var/jenkins_home/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@script to read Jenkinsfile
          Fetching changes from the remote Git repository
          Fetching without tags
          Checking out Revision 683bca6508b6ea3ede88d5eb6f459a0757f6a63f (origin/defaults)
          Commit message: "What if we just used a top-level docker agent"
          Loading library pipeline-library@master
          Attempting to resolve master from remote references...
          Found match: refs/heads/master revision cc8272a3a18c24736625675fb0edd64622fff689
          Fetching changes from the remote Git repository
          Fetching without tags
          Checking out Revision cc8272a3a18c24736625675fb0edd64622fff689 (master)
          Commit message: "Don't do parallel by default until JENKINS-48571 is fixed"
          Loading library inline-pipeline-secrets@master
          Attempting to resolve master from remote references...
          Found match: refs/heads/master revision 0b1840825b47d0a207151c22d49259b42f208728
          Fetching changes from the remote Git repository
          Fetching without tags
          Checking out Revision 0b1840825b47d0a207151c22d49259b42f208728 (master)
          Commit message: "Here be dragons"
          [Pipeline] node
          Running on docker-ubuntuab9e60 in /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ
          [Pipeline] {
          [Pipeline] stage
          [Pipeline] { (Declarative: Agent Setup)
          [Pipeline] sh
          [joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ] Running shell script
          + docker pull maven:slim
          slim: Pulling from library/maven
          Digest: sha256:029478613539ddc6ed15bb267e60285500fdd2a505aa08479583d481a6ba5a20
          Status: Image is up to date for maven:slim
          [Pipeline] }
          [Pipeline] // stage
          [Pipeline] sh
          [joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ] Running shell script
          + docker inspect -f . maven:slim
          .
          [Pipeline] withDockerContainer
          docker-ubuntuab9e60 does not seem to be running inside a container
          $ docker run -t -d -u 1000:1000 -w /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ -v /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ:/home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ:rw,z -v /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@tmp:/home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat maven:slim
          [Pipeline] {
          [Pipeline] timeout
          Timeout set to expire in 1 hr 0 min
          [Pipeline] {
          [Pipeline] stage
          [Pipeline] { (Debian Linux)
          Post stage
          [Pipeline] junit
          Recording test results
          [Pipeline] archiveArtifacts
          Archiving artifacts
          [Pipeline] }
          [Pipeline] // stage
          [Pipeline] }
          [Pipeline] // timeout
          [Pipeline] }
          $ docker stop --time=1 d88820f294211bd6a43180e13bb3dcb703960294e1d228520a68a1cd77590ffc
          $ docker rm -f d88820f294211bd6a43180e13bb3dcb703960294e1d228520a68a1cd77590ffc
          [Pipeline] // withDockerContainer
          [Pipeline] }
          [Pipeline] // node
          [Pipeline] End of Pipeline
          ERROR: Could not determine exact tip revision of defaults
          Finished: FAILURE
          
          

          R. Tyler Croy added a comment - An even simpler example: pipeline { agent { docker 'maven:slim' } options { buildDiscarder(logRotator(numToKeepStr: '10' )) timeout(time: 1, unit: 'HOURS' ) } stages { stage( 'Debian Linux' ) { steps { checkout scm sh 'mvn test -B' } post { always { junit testResults: '**/surefire-reports /**/ *.xml' , allowEmptyResults: true archiveArtifacts artifacts: '**/*.jar' , fingerprint: true } } } } } Started by user R. Tyler Croy ERROR: Could not determine exact tip revision of defaults; falling back to nondeterministic checkout Checking out git https: //github.com/rtyler/joni.git into / var /jenkins_home/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@script to read Jenkinsfile Fetching changes from the remote Git repository Fetching without tags Checking out Revision 683bca6508b6ea3ede88d5eb6f459a0757f6a63f (origin/defaults) Commit message: "What if we just used a top-level docker agent" Loading library pipeline-library@master Attempting to resolve master from remote references... Found match: refs/heads/master revision cc8272a3a18c24736625675fb0edd64622fff689 Fetching changes from the remote Git repository Fetching without tags Checking out Revision cc8272a3a18c24736625675fb0edd64622fff689 (master) Commit message: "Don't do parallel by default until JENKINS-48571 is fixed" Loading library inline-pipeline-secrets@master Attempting to resolve master from remote references... Found match: refs/heads/master revision 0b1840825b47d0a207151c22d49259b42f208728 Fetching changes from the remote Git repository Fetching without tags Checking out Revision 0b1840825b47d0a207151c22d49259b42f208728 (master) Commit message: "Here be dragons" [Pipeline] node Running on docker-ubuntuab9e60 in /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Agent Setup) [Pipeline] sh [joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ] Running shell script + docker pull maven:slim slim: Pulling from library/maven Digest: sha256:029478613539ddc6ed15bb267e60285500fdd2a505aa08479583d481a6ba5a20 Status: Image is up to date for maven:slim [Pipeline] } [Pipeline] // stage [Pipeline] sh [joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ] Running shell script + docker inspect -f . maven:slim . [Pipeline] withDockerContainer docker-ubuntuab9e60 does not seem to be running inside a container $ docker run -t -d -u 1000:1000 -w /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ -v /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ:/home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ:rw,z -v /home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@tmp:/home/azureuser/workspace/workspace/joni_defaults-MBT2YSTY7MUAHVKKYHYN6TISLWL6VSKQMMQ2D2GOPWZJSC72ENZQ@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat maven:slim [Pipeline] { [Pipeline] timeout Timeout set to expire in 1 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Debian Linux) Post stage [Pipeline] junit Recording test results [Pipeline] archiveArtifacts Archiving artifacts [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timeout [Pipeline] } $ docker stop --time=1 d88820f294211bd6a43180e13bb3dcb703960294e1d228520a68a1cd77590ffc $ docker rm -f d88820f294211bd6a43180e13bb3dcb703960294e1d228520a68a1cd77590ffc [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: Could not determine exact tip revision of defaults Finished: FAILURE

          Andrew Bayer added a comment -

          So far, can't reproduce this.

          Andrew Bayer added a comment - So far, can't reproduce this.

          Andrew Bayer added a comment -

          ERROR: Could not determine exact tip revision of defaults seems to be the problem, I'm assuming. I don't see that in any of my testing.

          Andrew Bayer added a comment - ERROR: Could not determine exact tip revision of defaults seems to be the problem, I'm assuming. I don't see that in any of my testing.

          Andrew Bayer added a comment -

          Here is where that message is coming from. Something's wrong with fetching from the SCM source...

          Andrew Bayer added a comment - Here is where that message is coming from. Something's wrong with fetching from the SCM source...
          Andrew Bayer made changes -
          Summary Original: Docker agents in parallel stages doesn't _do_ anything :-/ New: checkout scm fails silently after "Could not determine exact tip revision of <branch>" in logs

          Andrew Bayer added a comment -

          Digging further, if it got so far as Connector.checkConnectionValidity in GitHubSCMSource#retrieve, we'd see something in the logs like Connecting to https://api.github.com using ..., which isn't present. So whatever's wrong is happening between scmSource.fetch(head,listener) in SCMBinder (I think, given the error message) getting called and that call making it to one of the first few lines of GitHubSCMSource#retrieve. I dunno. Punting to stephenconnolly =)

          Andrew Bayer added a comment - Digging further, if it got so far as Connector.checkConnectionValidity in GitHubSCMSource#retrieve , we'd see something in the logs like Connecting to https://api.github.com using ... , which isn't present. So whatever's wrong is happening between scmSource.fetch(head,listener) in SCMBinder (I think, given the error message) getting called and that call making it to one of the first few lines of GitHubSCMSource#retrieve . I dunno. Punting to stephenconnolly =)

          Andrew Bayer added a comment -

          And note that this is with bleeding edge builds of master for every plugin and for core, not releases.

          Andrew Bayer added a comment - And note that this is with bleeding edge builds of master for every plugin and for core, not releases.

            stephenconnolly Stephen Connolly
            rtyler R. Tyler Croy
            Votes:
            6 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved: