Spinnaker Pipeline SpEL Expressions
Jump to navigation
Jump to search
External
- https://spinnaker.io/docs/guides/user/pipeline/expressions/
- https://spinnaker.io/docs/reference/pipeline/expressions/
- https://docs.armory.io/armory-enterprise/spinnaker-user-guides/expression-language/
Internal
Overview
The Spinnaker pipeline expression language is based on Spring Expression Language (SpEL).
Accessing Pipeline Element State
A Tag set by a Trigger
The tag set by a trigger can be accessed with the following expression:
- image: "something/something-else:${trigger['tag']}"
The Judgment Value set by a Manual Judgment Stage
${#judgment("<stage-name>")}
returns the selected judgment value from the specified Manual Judgment stage. <stage-name>
should be replaced with the actual name of the Manual Judgment stage
Example:
${#judgment("<stage-name>")}
execution.stages[n].context.judgmentInput=="rollback"
Displaying Pipeline State at Runtime
Conditional Expressions
${ execution.stages.?[ name == 'Rollback Decision' ][0].judgementInput == 'Rollback' }