You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: propagation of attributes mode, fail_fast, and hooks from originalYamlString (#41)
* fix: propagation of attributes mode and fail_fast from originalYamlString
* Add support for Hooks in original Yaml String
* Introduce retry logic for project delete to address eventual consistency
// extractStagesAndSteps extracts the steps and stages from the original yaml string to enable propagation in the `Spec` attribute of the pipeline
656
+
// extractSpecAttributesFromOriginalYamlString extracts the steps and stages from the original yaml string to enable propagation in the `Spec` attribute of the pipeline
663
657
// We cannot leverage on the standard marshal/unmarshal because the steps attribute needs to maintain the order of elements
664
658
// while by default the standard function doesn't do it because in JSON maps are unordered
Steps: `{"zz_firstStep":{"commands":["echo Hello World First Step"],"image":"alpine","stage":"test"},"aa_secondStep":{"commands":["echo Hello World Second Step"],"image":"alpine","stage":"test"}}`,
211
+
},
212
+
Stages: &cfClient.Stages{
213
+
Stages: `["test"]`,
214
+
},
215
+
Hooks: &cfClient.Hooks{
216
+
Hooks: `{"on_finish":{"steps":{"secondmycleanup":{"commands":["echo echo cleanup step"],"image":"alpine:3.9"},"firstmynotification":{"commands":["echo Notify slack"],"image":"cloudposse/slack-notifier"}}},"on_elected":{"exec":{"commands":["echo 'Creating an adhoc test environment'"],"image":"alpine:3.9"},"annotations":{"set":[{"annotations":[{"my_annotation_example1":10.45},{"my_string_annotation":"Hello World"}],"entity_type":"build"}]}}}`,
0 commit comments