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

withMaven disabled AnsiColorBuildWrapper

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: