Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm sure that this happens frequently. My testing suite is a separate repository from the company's main app. I wanted to know If there's a way to run the suite when a change is pushed to repository other than that of the testing suite itself on Jenkins.

share|improve this question

You should be able to configure a job to watch the app repository and trigger a run when the app repository changes.

It will be easier to configure if the company's application is managed through the same Jenkins server as your testing suite (depending on your source control system one Jenkins server can handle multiple source control repositories), but even if you have multiple Jenkins servers you can create a job to kick off your script run.

share|improve this answer

As Kate mentioned, it's lot easier to configure the job on your company's Jenkins...

But if it isn't an option then you can try:

Poll the subversion/perforce/git - monitor a repository. So as soon as the changes are committed to the repository, your build can kick off. Additionally there is "Quiet period" in "Advanced project Options", which will wait additional time before it starts building. This is useful if you want to wait for some time or more commits are expected.

Other hack though but not Jenkins way: You can script something to monitor the changes. Suppose any file which will represent the build information/timestamp or any changes that you are sure it will get updated whenever company's build succeeds.

You can configure such job in your Jenkins and run it through a cron using "Build Periodically". Whenever script find changes it should succeed or else fail, if succeed you can trigger your test suite if fails nothing will happen. This can be configured from "Add post build action" > "Build other Projects". You have to save it to see the options

  • "Trigger only if build succeeds"
  • "Trigger even if the build is unstable"
  • "Trigger even if the build fails"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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