Bridge job support more keywords such as "needs" and "environment"
Problem to solve
We have a split project (multi-project) deployment pipeline where the upstream app (code) pipeline triggers downstream deploy pipelines. This is done to further protect highly elevated runners. The issues arise with the upstream app pipeline, we have to add a pre and post-trigger/deploy stage to all of our regions, that means we have three stages for each deployment
- pre-trigger-[REGION NAME]
- jobs needed before the trigger/deploy like a manual hold job
- trigger-[REGION NAME]
- the bridge trigger job
- post-trigger-[REGION NAME]
- post jobs like set the environment in upstream project
all these extra stages and jobs are a direct result of the bridge job only supporting a small subset of configuration keywords.
Our pipeline would be much less complex if we could just have a trigger job set the environment when it is done. For higher regions have a bridge job be able to be manual would help very much as well.
needs keyword would be great for a dev deployment as we have many long-running jobs such as fortify and/or sonar that a deploy to dev job does not need to wait for, yet a bridge job waits.
Intended users
Development teams and/or devops teams would main beneficiaries of this as it would open door simpler multiple project pipelines.
Further details
support the when: manual keyword already has an issue #33286 (closed)
Proposal
Increase the number of configuration keywords that the bridge job supports. Environment, when: manual, and needs are of top priority.
Permissions and Security
When added the "environment" keyword please be sure that protected environments are adhered to.
Documentation
The Multi-project pipeline documentation would need to be updated to reflect this change.
Availability & Testing
What does success look like, and how can we measure that?
when teams do not need to add a number of pre/post stages and jobs to support missing feature of bridge jobs.
What is the type of buyer?
we are a mid-size EE custom 1200-1500 licenses
Is this a cross-stage feature?
Links / references
/CC @christiaanconover @cherryhan @shoyle