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

Maven log does not show errors any more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • maven-plugin
    • None
    • * Jenkins LTS 2.332.3 running in a Docker container
      * Maven integration plug-in 3.18
      * Pipeline Maven Integration 3.10.0


      Since recently, Maven build errors do not appear in the Jenkins build log any more. Here's a Maven error when running locally:

      ...
      [INFO] ------------------------------------------------------------------------ 
      [INFO] BUILD FAILURE 
      [INFO] ------------------------------------------------------------------------ 
      [INFO] Total time:  02:11 min 
      [INFO] Finished at: 2022-07-04T16:05:44+02:00 
      [INFO] ------------------------------------------------------------------------ 
      [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1-knime:sonar (default-cli) on project knime-hub-execution-shared: "2.4.0-alpha-todo-HUB-2847-remove-manual-health-checks-that-are-automatically-handled-by-quarkus-000001-3ee42ca" is not
      a valid project version. The maximum length is 100 characters. -> [Help 1]
                       
      [ERROR]  
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
      [ERROR] Re-run Maven using the -X switch to enable full debug logging. 
      [ERROR]  
      [ERROR] For more information about the errors and possible solutions, please read the following articles: 
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

      However the Jenkins console log only shows

      ...
      15:23:47.259  [INFO] --- sonar-maven-plugin:3.9.1-knime:sonar (default-cli) @ knime-hub-execution-shared ---
      15:23:47.359  [INFO] User cache: /home/****/.sonar/cache
      15:23:48.974  [Pipeline] }
      15:23:49.191  [withMaven] artifactsPublisher - Archive artifact .flattened-pom.xml under com/knime/enterprise/cloud/services/execution/knime-hub-execution-shared/2.4.0-alpha-todo-HUB-2847-remove-manual-health-checks-that-are-automatically-handled-by-quarkus-000001-3ee42ca/knime-hub-execution-shared-2.4.0-alpha-todo-HUB-2847-remove-manual-health-checks-that-are-automatically-handled-by-quarkus-000001-3ee42ca.pom
      

      The missing error makes debugging close to impossible, especially if it's an infrastructure-related issue that does not occur locally.

            Unassigned Unassigned
            sithmein Thorsten Meinl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: