Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-2867

Cannot retrieve Git metadata for the build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Jenkins Pipeline
    • Tags:
    • Sprint:
      DevTools-08, DevTools-09, DevTools-10

      Description

      This error is happening in the following job since this build:

      09:15:35  java.io.IOException: Cannot retrieve Git metadata for the build
      09:15:35  	at org.jenkinsci.plugins.github.util.BuildDataHelper.getCommitSHA1(BuildDataHelper.java:87)
      09:15:35  	at org.jenkinsci.plugins.github.status.sources.BuildDataRevisionShaSource.get(BuildDataRevisionShaSource.java:32)
      09:15:35  	at org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter.perform(GitHubCommitStatusSetter.java:135)
      09:15:35  Caused: org.jenkinsci.plugins.github.common.CombineErrorHandler$ErrorHandlingException
      09:15:35  	at org.jenkinsci.plugins.github.common.CombineErrorHandler.handle(CombineErrorHandler.java:74)
      09:15:35  	at org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter.perform(GitHubCommitStatusSetter.java:164)
      09:15:35  	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
      09:15:35  	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
      09:15:35  	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      09:15:35  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      09:15:35  	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      09:15:35  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      09:15:35  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      09:15:35  	at java.lang.Thread.run(Thread.java:748)
      

      https://qa.nuxeo.org/jenkins/job/Drive/job/FT-drive/job/master/1592/console

      Seems like it is triggered by this line of the jenkins file:

      def github_status(status) {
          step([$class: 'GitHubCommitStatusSetter',
              reposSource: [$class: 'ManuallyEnteredRepositorySource', url: repos_url],
              contextSource: [$class: 'ManuallyEnteredCommitContextSource', context: 'ci/qa.nuxeo.com'],
              statusResultSource: [$class: 'ConditionalStatusResultSource',
                  results: [[$class: 'AnyBuildResult',
                      message: status_msg.get(status), state: status]]]])
      }
      

      I can see in the job history that plugin changes were applied before this build:

      workflow-job@2.31 -> workflow-job@2.32
      git@3.9.2 -> git@3.9.3
      rebuild@1.30 -> rebuild@1.31
      scm-api@2.2.8 -> scm-api@2.4.0
      

      https://qa.nuxeo.org/jenkins/job/Drive/job/FT-drive/job/master/jobConfigHistory/showDiffFiles?timestamp1=2019-04-27_06-04-49&timestamp2=2019-05-13_08-34-12

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: