Jeevan
Jeevan

Reputation: 477

How to take a snapshot of a particular Jenkins Build

I have my application running as a Jenkins nightly build. During release I make sure all the test cases pass. How do I preserve a snapshot of the workspace just before every release? Can I store it in Jenkins as a build snapshot result? Please let me know.

Thanks Jeevan

Upvotes: 2

Views: 2171

Answers (1)

gareth_bowles
gareth_bowles

Reputation: 21140

You could ZIP or TAR up the contents of the workspace at the beginning of the build, and then use the "Archive the artifacts" post build step to save the archive with the release build.

Upvotes: 1

Related Questions