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

Pipeline log build log and step log do not mention step errors



    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: pipeline
    • Labels:
    • Similar Issues:


      I just encountered a failure in a tool installer step (different from JENKINS-64453).

      The full build log:

      Started by an SCM change
      Checking out git https://github.com/… into /var/jenkins_home/jobs/…/workspace@script to read Jenkinsfile
      The recommended git tool is: NONE
      using credential …
      Fetching changes from the remote Git repository
      Checking out Revision … (refs/remotes/origin/master)
      Commit message: …"
      [Checks API] No suitable checks publisher found.
      Running in Durability level: MAX_SURVIVABILITY
      Loading library pipeline-library@master
      Attempting to resolve master from remote references...
      Found match: refs/heads/master revision …
      The recommended git tool is: jgit
      No credentials specified
      Fetching changes from the remote Git repository
      Fetching without tags
      Checking out Revision … (master)
      Commit message: "…"
      [Checks API] No suitable checks publisher found.
      [Pipeline] Start of Pipeline
      [Pipeline] properties
      [Pipeline] node
      Running on … in /home/jenkins/workspace/…
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (Clean)
      [Pipeline] deleteDir
      [Pipeline] sh
      + ls -lah
      total 8.0K
      drwxrwxr-x 2 jenkins jenkins 4.0K Jan  6 19:09 .
      drwxrwxr-x 8 jenkins jenkins 4.0K Jan  6 19:09 ..
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] stage
      [Pipeline] { (Checkout)
      [Pipeline] checkout
      The recommended git tool is: NONE
      using credential …
      Cloning the remote Git repository
      remote: Enumerating objects
      remote: Counting objects
      remote: Compressing objects
      Receiving objects
      Resolving deltas
      Avoid second fetch
      Checking out Revision … (refs/remotes/origin/master)
      Commit message: "…"
      [Checks API] No suitable checks publisher found.
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] stage
      [Pipeline] { (Build)
      [Pipeline] tool
      Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip to /home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/mvn on …
      [Pipeline] tool
      Installing AdoptOpenJDK from /var/jenkins_home/caches/adoptopenjdk/LINUX/amd64/jdk- to /home/jenkins/tools/hudson.model.JDK/jdk11 on …
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] stage
      [Pipeline] { (Archive)
      [Pipeline] archiveArtifacts
      Archiving artifacts
      [Pipeline] archiveArtifacts
      Archiving artifacts
      ‘json/*.json’ doesn’t match anything: even ‘json’ doesn’t exist
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      [Checks API] No suitable checks publisher found.
      hudson.AbortException: No artifacts found that match the file pattern "json/*.json". Configuration error?
      	at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:280)
      Caused: java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:92)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:70)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      	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 

      Attached is a screenshot of the failing step log.

      Only navigating to the specific step, which usually doesn't show anything interesting, will reveal the problem.

      Blue Ocean shows the error message as part of the log.

      I report as a bug that neither the build log nor the step log mention the exception message that's shown as part of the log in Blue Ocean.


        1. blueocean.png
          206 kB
        2. step-log.png
          218 kB
        3. step-page.png
          570 kB


          There are no comments yet on this issue.


            Unassigned Unassigned
            danielbeck Daniel Beck
            1 Vote for this issue
            3 Start watching this issue