2016-07-19 11:12:28 +02:00
|
|
|
Injecting variables into messages
|
2017-01-04 13:22:20 +01:00
|
|
|
=================================
|
2016-07-19 11:12:28 +02:00
|
|
|
|
2017-07-18 15:54:24 +02:00
|
|
|
Most strings used in the build configuration can have variables related to the build inserted into them with the
|
|
|
|
following syntax:
|
2016-07-17 16:20:35 +02:00
|
|
|
|
|
|
|
"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
|
2016-07-19 13:05:02 +02:00
|
|
|
* **BUILD_URI** - The URL to the build in PHP Censor
|