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

withMaven disabled AnsiColorBuildWrapper

    Details

    • Similar Issues:

      Description

      I built a pipeline job which uses both the AnsiColorBuildWrapper and the Pipeline Maven plugin.

      When I call:

      withMaven(jdk: 'Java8 Auto Install', maven: 'Maven 3.2.2 Auto Install', mavenLocalRepo: '', mavenOpts: '', mavenSettingsFilePath: '') {
      wrap([$class: 'AnsiColorBuildWrapper'])

      { sh "mvn clean install" }

      }

      I correctly get a colored output.

      But if I switch the "withMaven" and the "wrap" blocks, I just see the control characters. I consider this a (minor) bug.

        Attachments

          Issue Links

            Activity

            Hide
            cleclerc Cyrille Le Clerc added a comment -

            It seems that many build wrappers get ignored / by-passed by the pattern we use in the withMaven step to wrap pipeline steps : MaskPasswordsBuildWrapper and AnsiColorBuildWrapper so far.

            Show
            cleclerc Cyrille Le Clerc added a comment - It seems that many build wrappers get ignored / by-passed by the pattern we use in the withMaven step to wrap pipeline steps : MaskPasswordsBuildWrapper and AnsiColorBuildWrapper so far.
            Hide
            alobato Alvaro Lobato added a comment -

            This is a duplicate of JENKINS-38709

            Show
            alobato Alvaro Lobato added a comment - This is a duplicate of JENKINS-38709
            Hide
            alobato Alvaro Lobato added a comment -

            Actually it was the other way round, sorry. There is a PR in review with a fix.

            Show
            alobato Alvaro Lobato added a comment - Actually it was the other way round, sorry. There is a PR in review with a fix.
            Hide
            alobato Alvaro Lobato added a comment -

            Release 0.3 was created with a fix to this bug.

            Show
            alobato Alvaro Lobato added a comment - Release 0.3 was created with a fix to this bug.
            Hide
            sphetsarath Sourigna Phetsarath added a comment - - edited

            Was the fix ever released? If so, what version was it in?  Thank you.

            Show
            sphetsarath Sourigna Phetsarath added a comment - - edited Was the fix ever released? If so, what version was it in?  Thank you.

              People

              • Assignee:
                alobato Alvaro Lobato
                Reporter:
                maxzilla Max Wahler
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: