Gradle plugin pipeline console annotator doesn't work with global timestamper

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      The "Executed Gradle Tasks" side panel that comes from gradle console log annotations doesn't show up when looking at pipeline logs when the global timestamper setting is turned on.

      Expected

      The "Executed Gradle Tasks" side panel shows up on pipeline/multibranch pipelines when using the global timestamper option

      Actual

      The panel does not show up

      Steps to Reproduce

      Works:
      1. Vanilla install of Jenkins LTS 2.426.1 with default plugins
      2. Setup java
      3. Run sample pipeline below

      Doesn't work:
      1. Vanilla install of Jenkins LTS 2.426.1 with default plugins
      2. Setup java
      3. Enable global timestamps (System > Timestamper > Enabled for all Pipeline builds)
      4. Run sample pipeline below

      build.gradle:

      task task1 {
          doLast {
              Thread.sleep(1000)
          }
      }
      
      task task2 {
          doLast {
              Thread.sleep(1000)
          }
      }
      
      task task3 {
          doLast {
              Thread.sleep(1000)
          }
      }
      

      multi-branch pipeline:

      pipeline {
          agent any
      
          tools {
             jdk "openjdk17.0_latest"
          }
      
          stages {
              stage('Hello') {
                  steps {
                      withGradle {
                          sh './gradlew task1 task2 task3'
                      }
                  }
              }
          }
      }
      

            Assignee:
            Stefan Wolf
            Reporter:
            Mark R
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: