php-censor/docs/en/interpolation.md

22 lines
825 B
Markdown
Raw Normal View History

2016-07-19 11:12:28 +02:00
Injecting variables into messages
---------------------------------
2016-07-17 16:20:35 +02:00
Most strings used in the build configuration can have variables related to the build inserted into them with the following syntax:
"My important message is about %SOMETHING%"
Where something can be one of the following:
* **COMMIT** - The commit hash
* **SHORT_COMMIT** - The shortened version of the commit hash
* **COMMIT_EMAIL** - The email address of the committer
* **COMMIT_MESSAGE** - The message written by the committer
* **COMMIT_URI** - The URL to the commit
* **BRANCH** - The name of the branch
* **BRANCH_URI** - The URL to the branch
* **PROJECT** - The ID of the project
* **BUILD** - The build number
* **PROJECT_TITLE** - The name of the project
* **BUILD_PATH** - The path to the build
* **BUILD_URI** - The URL to the build in PHPCI