-
Notifications
You must be signed in to change notification settings - Fork 808
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(expressions): various quality of life improvements for SpEL (#3272)
* fix(expressions): various quality of life improvements for SpEL * Let `#currentStage` be used in `stageEnabled` conditions This requires `.withAuth` on the the entire StartStageHander::handle because the `currentStage` function relies on the execution to be present in the threadlocal (which is placed there by ``.withAuth`) * Allow users to compare `ExecutionStatus` to string, e.g. this is now valid and works `${#stage('bake').status == 'SUCCEEDED'}` in the past one would have to `${#stage('bake').status.toString() == 'SUCCEEDED'}` which is annoying * Furthermore, added `hasSucceeded` and `hasFailed` to stage This further simplifies above conditionals to `${#stage('bake').hasSucceeded}` & `${#stage('bake').hasFailed}` * fixup! fix(expressions): various quality of life improvements for SpEL
- Loading branch information
1 parent
ffc188d
commit b819a2e
Showing
7 changed files
with
132 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters