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

A failed Gradle task does not log any of the error details

XMLWordPrintable

      When run via Jenkins pipeline, if a Gradle task fails or Gradle exits with a non-zero exit code, this line swallows the error message:

      https://github.com/jenkinsci/artifactory-plugin/blob/master/src/main/java/org/jfrog/hudson/pipeline/steps/ArtifactoryGradleBuild.java#L184

       

      This makes it extremely difficult to troubleshoot failed builds, especially as you start to mix in other things like the Docker plugin, etc. Reproducing the build is not trivial.

       

      The full error details should be displayed in the Jenkins console log.

       

            eyalbe Eyal Ben Moshe
            jcmcken Jon McKenzie
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: