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

Artifactory Maven build hides stdout in Pipeline

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • artifactory-plugin
    • Jenkins 2.19.1, Artifactory Plugin 2.7.2, Pipeline API 2.5, Windows 2012 R2 x64

      I am running a Maven build via the Artifactory plugin in a Pipeline build like this:

      def artifactory = Artifactory.server('com.example')
      def mavenBuild = Artifactory.newMavenBuild()
      mavenBuild.resolver = null
      mavenBuild.deployer server: artifactory, releaseRepo: 'example-local', snapshotRepo: 'example-snapshots-local'
      mavenBuild.tool = 'Maven 3.3.9'
      
      env.setProperty('PATH+JDK', javaHome + "bin")
      
      def coreBuildInfo = mavenBuild.run pom: 'dev\\pom.xml', goals: 'clean install -s cm\\settings.xml -Dmaven.repo.local=.repository -Dmaven.test.failure.ignore=true -B -U -Prelease'
      

      It works great except for one thing: While the build is running, stdout/err from Maven is not displayed in the live console in Jenkins. It works if I run a `bat` step to run `mvn` directly, but not the Artifactory plugin's `Maven3Builder`. The console just sits there until the entire Maven build is done, then all the output shows up at once.

      This makes it very difficult to watch the progress of the build, as you can imagine.

          [JENKINS-39230] Artifactory Maven build hides stdout in Pipeline

          Pavel Georgiev added a comment - - edited

          +1. It's really annoying as my build takes 30 minutes

          However i can see the output real-time in BlueOcean step ui (using currently BlueOcean beta 1.0.0-b10)

          Pavel Georgiev added a comment - - edited +1. It's really annoying as my build takes 30 minutes However i can see the output real-time in BlueOcean step ui (using currently BlueOcean beta 1.0.0-b10)

          This issue was fixed as part of version 2.9.0 of the Artifactory Plugin. Can you please try it out and let us know if the is resolved for you?

          Eyal Ben Moshe added a comment - This issue was fixed as part of version 2.9.0 of the Artifactory Plugin. Can you please try it out and let us know if the is resolved for you?

          Tyrel Haveman added a comment -

          Thanks eyalbe, it does seem to be fixed!

          Tyrel Haveman added a comment - Thanks eyalbe , it does seem to be fixed!

            eyalbe Eyal Ben Moshe
            tyrelh Tyrel Haveman
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: