1

I run an everyday build using Jenkins and Unity3d command line arguments

(Android build)

-quit -batchmode -projectPath "$WORKSPACE" - executemode BuildSetup

and (Windows build)

-quit -batchmode -projectPath "$WORKSPACE" - "Artifacts/game.x86.exe" -logFile "$WORKSPACE\unity3d_editor .

Jenkins polls the SCM (Perforce) and starts to build automatically when I submit changes. Everything works fine but new outcome files (for instance “game.apk” for android) overwrites the old ones. I’d like to avoid overwriting files and keep the old ones as well. Other words - I’d like to get as much “game.apk” files as build successful finished.

Please help me out if you got any idea how to deal with it.

Thanks, Adam.

Matthew Purdon
  • 754
  • 11
  • 28

1 Answers1

3

You need to "archive" your artifacts (what you called "outcome files").

It's a post-build action, called "Archive the Artifacts". Also, decide how many builds, with archives you want to keep. This is configured in the first "Advanced..." section of the job configuration.

More about archiving here:
Archive the artifacts in hudson/jenkins

Community
  • 1
  • 1
Slav
  • 27,057
  • 11
  • 80
  • 104
  • Glad that helped you, Adam. Since you are new to SO, I will respectfully explain that to *accept* an answer, you've got to click the *checkmark* icon outline next to the answer (it will turn green). – Slav Feb 23 '15 at 00:04