Where are Jenkins artifacts located?

Viewed 93139

I added the Archive Artifacts post-build option to my project. I can see the artifacts from the web browser interface, but I cannot find them in the filesystem.

Where are they located?

3 Answers

Just another couple of tips...

You can find jenkins home by going to the environment variables page in the job build jenkins page.

Where to find Environment Variables

In my case JENKINS_HOME turned out to be /var/lib/jenkins

Found artifacts in:

/var/lib/jenkins/jobs/<my-job-name>-build/lastStable/archive/target

/var/lib/jenkins/jobs/<my-job-name>-build/lastSsuccessful/archive/target

as well as

/var/lib/jenkins/jobs/<my-job-name>-build/builds/8/archive/target

Path is : $JENKINS_HOME/jobs//jobs//branches//builds/$BUILD_NUMBER/archive/

You have to extract branch name, job name and repository name from JOB_NAME environment variable.

Related