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
Copy file name to clipboardExpand all lines: _docs/promotions/promotion-context-promotion-workflows.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,10 +83,10 @@ When the Promotion Flow is triggered and a product release is created, the promo
83
83
84
84
#####Triggering subsequent promotion hooks
85
85
As the Flow progresses, the promotion mechanism:
86
-
* Retrieves the promotion contextfrom the previous hook
87
-
* Passes the context automatically to the next hook as input parameters:
88
-
* New parameters are added tothe input parameters of the next hook
89
-
* For existing parameters, the value ofthe parameter inthe current hook always takes precedence
86
+
* Retrieves the promotion contextexported by the previous hook
87
+
* Passes thepromotioncontext automatically to the next hook
88
+
* If the current hook defines one or more oftheparameters from the promotion context asinput parameters, their values are taken from the context
89
+
* If the current hook also exports a promotion context withthesameparameter, the value fromthe current hook’s promotion context overrides the value from the previous context
90
90
91
91
92
92
@@ -124,8 +124,8 @@ This hook performs two main actions:
124
124
| --------------| --------------|
125
125
|**Two-step DAG structure**| The hook uses a Directed Acyclic Graph (DAG) with two tasks: first`create-issue`, then`set-promotion-context`. The second task depends on the successful creation of the Jira issue.|
126
126
|**Jira issue creation**| The`create-issue` task uses a custom container to create a Jira ticket.|
127
-
|**Promotion context definition**| After theissue is created, the`set-promotion-context` task creates a JSON object with the full Jira issue URL. This JSON is saved to`/tmp/promotion-context.txt` and exported as the`PROMOTION_CONTEXT` global output.|
128
-
|**Sharing information across hooks**| By exporting`PROMOTION_CONTEXT`, later hooks in the same Promotion Flow,like a Slack notification hook, canaccess the Jira issue details.|
127
+
|**Promotion context definition**| AftercreatingtheJira issue, the`set-promotion-context` task creates a JSON object with the full Jira issue URL. This JSON is saved to`/tmp/promotion-context.txt` and exported as the`PROMOTION_CONTEXT` global output.|
128
+
|**Sharing information across hooks**| By exporting`PROMOTION_CONTEXT`, later hooks in the same Promotion Flow,haveaccess to the Jira issue details.|