@ Override public boolean perform ( AbstractBuild < ? , ? > build , Launcher launcher , BuildListener listener ) throws InterruptedException , IOException { listener . getLogger ( ) . println ( "Jenkins Artifactory Plugin version: " + ActionableHelper . getArtifactoryPluginVersion ( ) ) ; EnvVars env = build . getEnvironment ( listener ) ; FilePath workDir = build . getModuleRoot ( ) ; FilePath ws = build . getWorkspace ( ) ; FilePath mavenHome = getMavenHome ( listener , env , launcher ) ; if ( ! mavenHome . exists ( ) ) { listener . error ( "Couldn't find Maven home: " + mavenHome . getRemote ( ) ) ; throw new Run . RunnerAbortedException ( ) ; } ArgumentListBuilder cmdLine = buildMavenCmdLine ( build , listener , env , launcher , mavenHome , ws , ws ) ; String [ ] cmds = cmdLine . toCommandArray ( ) ; return RunMaven ( build , launcher , listener , env , workDir , cmds ) ; }
Used by FreeStyle Maven jobs only