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

Artifactory Maven build hides stdout in Pipeline


    • 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:


      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.




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


              • Created: