Reputation: 31338
I would like to be able to label Jenkins
builds so that the downstream deployment jobs only pick up the artifacts from the build that have a certain label -- not just the latest build. That would involve going into the build execution manually and labeling the build as "stable", or "prod-ready" or "uat-ready". I am using the Deploy Plugin for my deployments (or war files to a web container).
Is there a Jenkins plugin that can do this or perhaps a way to do it without a new plugin installation?
Upvotes: 1
Views: 3432
Reputation: 1169
You can use jenkins pipeline plugin. You can create a pipeline job with stages so after the stage of building image, next stage you can use that image for deployment. Refer documentation for more details on pipeline.
Pipeline comes with a lot of flexibilities in which you can define the flow. You can either use a declarative pipeline or a scripted pipeline. Good number of examples can be found in here
Upvotes: 1