Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pipelinetemplate): Child stages of conditional stages should be p…
…reserved - Fixed an issue where children of a rendered conditional stage are dropped off the stages graph
- Loading branch information
1 parent
0bd8410
commit dfaf809
Showing
7 changed files
with
89 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
import java.util.List; | ||
|
||
public interface Conditional { | ||
|
||
List<String> getWhen(); | ||
void setRemove(); | ||
} |
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
25 changes: 25 additions & 0 deletions
25
orca-pipelinetemplate/src/test/resources/templates/conditional-stages-with-children-001.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
schema: "1" | ||
id: simpleTemplate | ||
variables: | ||
- name: includeWait | ||
type: boolean | ||
stages: | ||
- id: wait | ||
type: wait | ||
config: | ||
waitTime: 5 | ||
- id: conditionalWait | ||
type: wait | ||
dependsOn: | ||
- wait | ||
config: | ||
waitTime: 5 | ||
when: | ||
# This could also just be '{{ includeWait }}', but examples. | ||
- '{{ includeWait == true }}' | ||
- id: childOfConditionalStage | ||
type: conditionalWait | ||
dependsOn: | ||
- conditionalWait | ||
config: | ||
waitTime: 5 |