patternMinor
Spinnaker keeps showing disabled stages in Jenkins pipeline UI
Viewed 0 times
keepsspinnakershowingjenkinsdisabledstagespipeline
Problem
I have a pipeline with a few disabled stages:
The doc states that disabled stages are hidden from the UI [1]:
However, those stages are still present in the UI.
When I go to
Spinnaker version 1.23.5
{
"enabled": false,
"completeOtherBranchesThenFail": true,
"continuePipeline": false,
"failPipeline": false,
"parameters": {
"FOO": "bar"
},
"type": "jenkins"
}
The doc states that disabled stages are hidden from the UI [1]:
enabled - Determines if stage will be available in the UI.However, those stages are still present in the UI.
When I go to
Configure Pipeline > Edit stage as JSON, the enabled flag is set to false, so the UI has the right value.- https://spinnaker.io/guides/operator/custom-job-stages/#creating-a-custom-job-stage
Spinnaker version 1.23.5
Solution
I was not able to find how to hide a stage, however I found one can skip it using
It takes a Spring Language Expression like so:
Or from the UI editor:
stageEnabled [1].It takes a Spring Language Expression like so:
{
"stageEnabled": {
"expression": "false", // you can also use SpEL, e.g. ${someBoolean}
"type": "expression"
},
"completeOtherBranchesThenFail": true,
"continuePipeline": false,
"failPipeline": false,
"parameters": {
"FOO": "bar"
},
"type": "jenkins"
}
Or from the UI editor:
Execution Options > Conditional on Expression > Enter false [2].- https://docs.armory.io/docs/spinnaker-user-guides/using-dinghy/#stage-fields
- https://spinnaker.io/guides/user/pipeline/expressions/#dynamically-skip-a-stage
Context
StackExchange DevOps Q#13531, answer score: 1
Revisions (0)
No revisions yet.