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

Artifactory Maven build hides stdout in Pipeline

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: artifactory-plugin
    • Labels:
    • Environment:
      Jenkins 2.19.1, Artifactory Plugin 2.7.2, Pipeline API 2.5, Windows 2012 R2 x64
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          pgeorgiev 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)

          Show
          pgeorgiev 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)
          Hide
          eyalbe 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?

          Show
          eyalbe 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?
          Hide
          tyrelh Tyrel Haveman added a comment -

          Thanks Eyal Ben Moshe, it does seem to be fixed!

          Show
          tyrelh Tyrel Haveman added a comment - Thanks Eyal Ben Moshe , it does seem to be fixed!

            People

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

              Dates

              • Created:
                Updated: