Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't get build artifacts to display properly in Jenkins/Hudson

Tags:

jenkins

hudson

I currently Jenkins to as my continuous integration system and I use Gradle to build my project. Without changing anything Gradle by default puts all the build artifacts under the /build folder in the workspace. This obviously doesn't work well since the build artifacts get overwritten by the following build.

I have modified my script to output the files in the /builds/[BUILD_ID] folder on Jenkins, which puts the build artifacts in the correct build folder on the CI system, but they don't show up in the Jenkins gui when you navigate to a specific build.

How do I get my build artifacts to display in Jenkins? Where do they need to be put, in order to show up for each build?

like image 732
stuff22 Avatar asked Feb 07 '12 18:02

stuff22


1 Answers

In the Post Build Actions section of your Jenkins job configuration, select "Archive the artifacts" and specify which files to archive. Jenkins will save them with the rest of the build data and provide links to each file on the build page.

like image 101
gareth_bowles Avatar answered Oct 05 '22 21:10

gareth_bowles