python - How can I make a Jenkins build for a GitHub repository be triggered by a push to a different repository? -



python - How can I make a Jenkins build for a GitHub repository be triggered by a push to a different repository? -

i have github repository (call x) python code package, , separate github repository (call x-tests) contains tests bundle (they're separate repositories because 1 containing tests private can run other private code). create when pushes x repository, jenkins run tests x-tests repository, , other stuff related x repository (e.g. making pip wheel).

the way can think of have 3 separate jenkins jobs:

a job nothing, github repository x, builds triggered pushes x a job runs tests, github repository x-test, builds triggered completion of job 1 a job makes pip wheel etc., github repository x, builds triggered completion of job 2

is there simpler way it?

i think pretty standard approach implementing simple build-test-posttest pipeline. job 1 name-commit-stage, job 2 name-test-stage or name-integration-stage , 3rd job pip-wheel.

you can see more complex pipeline in build pipeline jenkins plugin.

check if 3rd job should using job 1's artifacts instead of repository x. bring atomicity pipeline force repository x while job has started. copy artifact plugin useful that, or can reference local job 1 workspace source of job 3 (as parameter in build step).

you need create sure changes repository x-tests should pushed before changes repository x, job 2 may utilize code in repository x-tests not in sync repository x, leading test failures.

python github jenkins

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -