-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1369
sourceBuild
in the templating context for auto-versioning
- Loading branch information
1 parent
fa41f37
commit 139df25
Showing
12 changed files
with
87 additions
and
9 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
51 changes: 51 additions & 0 deletions
51
ontrack-docs/src/docs/asciidoc/templating/contexts/auto-versioning-context.adoc
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,51 @@ | ||
[[appendix-templating-contexts-auto-versioning]] | ||
===== Auto-versioning context | ||
|
||
For the templates used during an auto-versioning process (post-processing parameters, pull request templates, etc.), the following root contexts are available: | ||
|
||
|=== | ||
|Context |Type |Description | ||
|
||
|`sourceProject` | ||
|Project | ||
|Reference to the project where the promotion was done | ||
|
||
|`targetBranch` | ||
|Branch | ||
|Branch being updated | ||
|
||
|`sourceBuild` | ||
|Build | ||
|Build which has been promoted | ||
|
||
|`sourcePromotionRun` | ||
|Promotion run | ||
|Promotion object | ||
|
||
|`PROMOTION` | ||
|String | ||
|Name of the promotion | ||
|
||
|`PATH` | ||
|String | ||
|_First_ path being updated | ||
|
||
|`PATHS` | ||
|String | ||
|Comma-separated list of all paths being updated | ||
|
||
|`PROPERTY` | ||
|String | ||
|Target property being updated | ||
|
||
|`VERSION` | ||
|String | ||
|Version being set | ||
|
||
| `av` | ||
| See <<templating-renderable-av>> | ||
| Specific object for the auto-versioning | ||
|
||
|=== | ||
|
||
// The source code is at AutoVersioningTemplatingServiceImpl |
10 changes: 10 additions & 0 deletions
10
ontrack-docs/src/docs/asciidoc/templating/contexts/index.adoc
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,10 @@ | ||
[[appendix-templating-contexts-index]] | ||
==== Execution contexts | ||
|
||
Different root contexts are available for the template expressions, depending on the context in which the template is executed. | ||
|
||
For a notification, the template is always executed in regard to an _event_. Each event provides its own list of root contexts. See the <<appendix-event-index,list of events>>. | ||
|
||
There are several specific contexts: | ||
|
||
include::auto-versioning-context.adoc[] |
2 changes: 1 addition & 1 deletion
2
...ack-docs/src/docs/asciidoc/templating/renderables/templating-renderable-av.adoc
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
2 changes: 1 addition & 1 deletion
2
...cs/src/docs/asciidoc/templating/renderables/templating-renderable-workflow.adoc
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
2 changes: 1 addition & 1 deletion
2
...rc/docs/asciidoc/templating/renderables/templating-renderable-workflowInfo.adoc
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