Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-1238

Plugin version 3.4 is breaking the build looking for files in .git/refs/heads/

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.4.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Artifactory Jenkins plugin version 3.4.0 - Fails

      Artifactory Jenkins plugin version 3.3.0 - Succeeds

       

      Description

      Plugin version 3.4 is breaking the build for this customer looking for files in ".git/refs/heads/" this path. It fails with "(No such file or directory)". Is it related to this https://www.jfrog.com/jira/browse/HAP-1233 ?

      It works well with the previous versions of the Plugin 3.3.0 and 3.3.2. Please look at the provided screenshots for the details of the error.

      ERROR message
      java.io.FileNotFoundException: /var/jenkins_home/workspace/case/.git/refs/heads/master (No such file or directory)
      at java.io.FileInputStream.open0(Native Method)
      at java.io.FileInputStream.open(FileInputStream.java:195)
      at java.io.FileInputStream.<init>(FileInputStream.java:138)
      at java.io.FileReader.<init>(FileReader.java:72)
      at org.jfrog.build.extractor.clientConfiguration.util.GitUtils.extractVcsRevision(GitUtils.java:102)
      at org.jfrog.build.extractor.clientConfiguration.util.GitUtils.extractVcs(GitUtils.java:37)
      at org.jfrog.hudson.pipeline.common.Utils$1.invoke(Utils.java:139)
      at org.jfrog.hudson.pipeline.common.Utils$1.invoke(Utils.java:137)
      at hudson.FilePath.act(FilePath.java:1076)
      at hudson.FilePath.act(FilePath.java:1059)
      at org.jfrog.hudson.pipeline.common.Utils.extractVcs(Utils.java:137)
      at org.jfrog.hudson.pipeline.common.executors.GenericUploadExecutor.execute(GenericUploadExecutor.java:53)
      at org.jfrog.hudson.pipeline.scripted.steps.UploadStep$Execution.run(UploadStep.java:72)
      at org.jfrog.hudson.pipeline.scripted.steps.UploadStep$Execution.run(UploadStep.java:52)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
      at hudson.security.ACL.impersonate(ACL.java:290)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Finished: FAILURE

        Attachments

        1. error_in_3.4.png
          488 kB
          Sai Undurthi
        2. pipelinescript
          1 kB
          Sai Undurthi

          Issue Links

            Activity

              People

              Assignee:
              eyalb Eyal Ben Moshe
              Reporter:
              saiu Sai Undurthi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: