Skip to content

Commit

Permalink
Adding a dedicated page to environment variables to make it easier fo…
Browse files Browse the repository at this point in the history
…r folks to find them
  • Loading branch information
dima-groupon committed Mar 7, 2016
1 parent 0843c1d commit 7b0123b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/user-guide/EnvironmentVariables.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Environment Variables

In addition to [Jenkins build
variables](https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-JenkinsSetEnvironmentVariables),
DotCi provides the following global variables:

* `DOTCI_BRANCH` - current branch
* `DOTCI` - always true
* `CI` - always true
* `DOTCI_SHA` - current sha being built
* `GIT_URL` - git url
* `DOTCI_PUSHER` - github username whose git push triggred this build
* `DOTCI_PULL_REQUEST` - pull request number being built
* `DOTCI_PULL_REQUEST_SOURCE_BRANCH` - the pull request branch
* `DOTCI_PULL_REQUEST_TARGET_BRANCH` - the branch the pull request is targeting
1 change: 1 addition & 0 deletions docs/user-guide/Templating.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Templating .ci.yml

## Environment Variables
[Environment Variables](EnvironmentVariables.md)

In addition to [Jenkins build
variables](https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-JenkinsSetEnvironmentVariables),
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pages:
- .ci.yml Plugins Reference: user-guide/Plugins.md
- .ci.yml Notifications Reference: user-guide/Notifications.md
- .ci.yml Templating: user-guide/Templating.md
- .ci.yml Environment Variables: user-guide/EnvironmentVariables.md
- Examples : user-guide/Examples.md
- cli : user-guide/CLI.md
- UI Reference : user-guide/UI.md
Expand Down

0 comments on commit 7b0123b

Please sign in to comment.