My current company has a Jenkins/DotCi setup. Our current process for CI is when dev pushes to github, jenkins runs unit tests on all branches and reports back to us via email if the unit tests failed.

If on master, we then run a deploy to a UAT environment and we will soon be activating our integration tests after a deploy occurs successfully.

We want to run our integration tests against our Staging environment on a daily basis.

With the "Build Periodically" feature under Config i know we can specify when we trigger it to occur, however is there a way to have it trigger the integration test only rather than having to deploy?

closed as off-topic by user40980, Kilian Foth, GlenH7, Bart van Ingen Schenau, gnat Jan 17 '15 at 15:10

  • This question does not appear to be about software engineering within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Welcome to programmers.stackexchange.com where programming questions are forbidden as off-topic. – K. Alan Bates Apr 15 '16 at 13:39

You can create a new job that only runs your integration tests. I always split up jobs like this:

  • build + unit test
  • deploy into UAT
  • run smoke tests
  • run integration tests / UAT

Take a look at the plugins Build Result Trigger, and the new Build Flow Plugin.

You can also just trigger another job with plain Jenkins without any plugin. In your job, add a Post build step and make it Run anther job.

edit If you need to copy artifacts from one build to another (to create a build+deploy pipeline), you can use the Copy Artifact Plugin.

  • Thanks! this is the perfect response i was looking for. This may be off topic, but was curious about copying artifact from one build to another. If i used this function, would this be copying the build that just occurred over to the new job/project? – Jordan Jan 20 '15 at 21:03
  • Good question. I am using a maven repository to manage artifacts, so I don't need to copy the artifacts through builds. There is wiki.jenkins-ci.org/display/JENKINS/Copy+Artifact+Plugin if you want to create a real build pipeline though. – cringe Jan 21 '15 at 9:03

Yes. You can put the deployment and the integration tests into two different Jenkins projects.
Then you can configure the project with the integration tests to be built (executed) when the deployment build succeeds and also on a regular schedule.

  • Thanks for the reply! I dont have access to create new projects/jobs unfortunately. :\ – Jordan Jan 15 '15 at 19:59
  • @Jordan: Then get someone else to create the required jobs. Jenkins can´t run a partial job. – Bart van Ingen Schenau Jan 15 '15 at 20:16
  • Good to know! Ill research that route then:) – Jordan Jan 15 '15 at 21:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.