Search code examples
jenkinspackaging

Running one build per artifact of another job


I have a jenkins job to create multiple debian packages. Each created package file is archived as artifact of the build. This works well so far.

Currently I am trying to to trigger multiple builds of another job, one for each created package file. This job should install each package in an isolated vagrant box and do some tests on it.

The question is how to trigger the builds. As it would be nice to parallelize the builds it is not easy as doing one build for all packages. The number of packages is not always the same, so it is very uncomfortable to duplicate the job for each package.

Thanks, krissi


Solution

  • To act on every build of a project, you probably want "Promotions". Read about it here: How to promote a specific build number from another job in Jenkins?