Can Jenkins be configured to build every time a developer commits a code in git that will create an artifact, but only deploy when required using the artifact from the build process (but not pull again from git), say once at night.
Asked
Active
Viewed 268 times
0
-
I should have mentioned that iam looking for somethign similar to what bamboo offers as build plan and deployment projects. – msreekm Jul 06 '15 at 17:43
-
http://stackoverflow.com/questions/5784329/how-can-i-make-jenkins-ci-with-git-trigger-on-pushes-to-master ... check this it might help you – kavetiraviteja Jul 06 '15 at 18:25
1 Answers
1
Yes. I suggest that you setup two jobs.
- Your CI job which polls your source code and runs at every detected commit
- A second job which runs on daily schedule and uses the Jenkins Copy Artifact plugin to copy into its workarea the last available artifact from the first job, and deploys it.
In the second job you can use the Conditional Build Step plugin to skip the deployment if the first job status is FAILURE.

rgulia
- 523
- 7
- 11