patternMinor
Jenkins Promote Build across different pipeline?
Viewed 0 times
promotejenkinsdifferentacrossbuildpipeline
Problem
In my workplace, we are using a monolithic repo. It contains many project and micro services that run on different Jenkins pipeline. I know that using Promoted Build Plugin, we can promote build of tested artifact.
However as our projects depend on projects that run on a separate pipeline, I am wondering if the Promoted Build Plugin is able to promote artifact to a different pipeline. Or can the pipeline that is running head over to a separate "place" to take the last tested artifact and use it as part of its own pipeline criteria?
The reason we want to do this is because of integration test that depend on the existent of another build artifact. We want to be able to test on the latest build artifact that is on another pipeline. Would be even better if we can select base on the tag/version.
However as our projects depend on projects that run on a separate pipeline, I am wondering if the Promoted Build Plugin is able to promote artifact to a different pipeline. Or can the pipeline that is running head over to a separate "place" to take the last tested artifact and use it as part of its own pipeline criteria?
The reason we want to do this is because of integration test that depend on the existent of another build artifact. We want to be able to test on the latest build artifact that is on another pipeline. Would be even better if we can select base on the tag/version.
Solution
In my opinion you should treat each pipeline dependency as any other dependency.
Set up an artifact repo like nexus or artifactory to be used as source of artifacts.
This way you can ask for latest or tagged version of an artifact inside your pipeline and push to this repo your own artifacts when the build succeed.
Set up an artifact repo like nexus or artifactory to be used as source of artifacts.
This way you can ask for latest or tagged version of an artifact inside your pipeline and push to this repo your own artifacts when the build succeed.
Context
StackExchange DevOps Q#1204, answer score: 2
Revisions (0)
No revisions yet.