问题
I am new Jenkins , using jenkins 1.651.3 War deployed on Tomcat6
Is there any way to download Jenkins job’s output file ( my job produced a jar file ) from jenkins UI Console itself ?
So, could anyone suggest me is there any way or plugin available to make the each Jenkins build output files ( like Jar/War) as downloadable from the Jenkins server machine
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ NumberGenerator ---
[INFO] Building jar: /opt/cloudhost/jenkinsHome/jobs/TestGiby/workspace/NumberGenerator/target/NumberGenerator-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ NumberGenerator ---
[INFO] Installing /opt/cloudhost/jenkinsHome/jobs/TestGiby/workspace/NumberGenerator/target/NumberGenerator-0.0.1-SNAPSHOT.jar to /opt/cloudhost/software/maven/mavenRepo/com/giby/maven/NumberGenerator/0.0.1-SNAPSHOT/NumberGenerator-0.0.1-SNAPSHOT.jar
[INFO] Installing /opt/cloudhost/jenkinsHome/jobs/TestGiby/workspace/NumberGenerator/pom.xml to /opt/cloudhost/software/maven/mavenRepo/com/giby/maven/NumberGenerator/0.0.1-SNAPSHOT/NumberGenerator-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.575 s
[INFO] Finished at: 2017-02-01T05:00:44+00:00
[INFO] Final Memory: 19M/607M
[INFO] ------------------------------------------------------------------------
Finished: SUCCESS
回答1:
Use Archive the artifacts
post-build step, it copies the selected artifacts in the artifacts folder.
Then you will be able to download the file from build page itself.
回答2:
Well, you can right click on "View as unformatted text" and choose "Save link as" to save log on your PC.
回答3:
I am able to directly open the console log in Notepad++. Just right-click the "Full Log" link, copy the link address, then paste it into the "Open" dialog in Notepad++.
My Jenkins server had to be configured to allow this.
来源:https://stackoverflow.com/questions/41974070/how-to-download-build-output-files-from-jenkins-ui-console-itself