@@ -54,26 +54,27 @@ if (isCI) {
54
54
55
55
## Supported CI
56
56
57
- | CI Service (` name ` ) | ` service ` | ` isCi ` | ` commit ` | ` build ` | ` buildUrl ` | ` branch ` | ` job ` | ` jobUrl ` | ` pr ` | ` isPr ` | ` slug ` | ` root ` |
58
- | -----------------------------------------------------------------------------------------------------------| :-----------:| :------:| :--------:| :-------:| :----------:| :--------:| :-----:| :--------:| :----:| :------:| :------:| :------:|
59
- | [ AppVeyor] ( https://www.appveyor.com/docs/environment-variables ) | ` appveyor ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
60
- | [ Bamboo] ( https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html ) | ` bamboo ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
61
- | [ Bitbucket] ( https://confluence.atlassian.com/bitbucket/environment-variables-794502608.html ) | ` bitbucket ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
62
- | [ Bitrise] ( http://devcenter.bitrise.io/faq/available-environment-variables/#exposed-by-bitriseio ) | ` bitrise ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
63
- | [ Buildkite] ( https://buildkite.com/docs/builds/environment-variables ) | ` buildkite ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ |
64
- | [ CircleCI] ( https://circleci.com/docs/1.0/environment-variables ) | ` circleci ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ |
65
- | [ Cirrus CI] ( https://cirrus-ci.org/guide/writing-tasks/#environment-variables ) | ` cirrus ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
66
- | [ AWS CodeBuild] ( https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html ) | ` codebuild ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
67
- | [ Codeship] ( https://documentation.codeship.com/basic/builds-and-configuration/set-environment-variables ) | ` codeship ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ |
68
- | [ Drone] ( http://readme.drone.io/0.5/usage/environment-reference ) | ` drone ` | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ |
69
- | [ Gitlab CI/CD] ( https://docs.gitlab.com/ce/ci/variables/README.html ) | ` gitlab ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ |
70
- | [ Jenkins] ( https://wiki.jenkins.io/display/JENKINS/Building+a+software+project ) | ` jenkins ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
71
- | [ Semaphore] ( https://semaphoreci.com/docs/available-environment-variables.html ) | ` semaphore ` | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
72
- | [ Shippable] ( http://docs.shippable.com/ci/env-vars/#stdEnv ) | ` shippable ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
73
- | [ TeamCity] ( https://confluence.jetbrains.com/display/TCD10/Predefined+Build+Parameters ) | ` teamcity ` | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
74
- | [ Travis CI] ( https://docs.travis-ci.com/user/environment-variables ) | ` travis ` | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
75
- | [ Visual Studio Team Services] ( https://docs.microsoft.com/en-us/vsts/pipelines/build/variables ) | ` vsts ` | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ✅ |
76
- | [ Wercker] ( http://devcenter.wercker.com/docs/environment-variables/available-env-vars#hs_cos_wrapper_name ) | ` wercker ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
57
+ | CI Service (` name ` ) | ` service ` | ` isCi ` | ` commit ` | ` build ` | ` buildUrl ` | ` branch ` | ` job ` | ` jobUrl ` | ` pr ` | ` isPr ` | ` slug ` | ` root ` |
58
+ | ----------------------------------------------------------------------------------------------------------------| :-----------:| :------:| :--------:| :-------:| :----------:| :--------:| :-----:| :--------:| :----:| :------:| :------:| :------:|
59
+ | [ AppVeyor] ( https://www.appveyor.com/docs/environment-variables ) | ` appveyor ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
60
+ | [ Bamboo] ( https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html ) | ` bamboo ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
61
+ | [ Bitbucket] ( https://confluence.atlassian.com/bitbucket/environment-variables-794502608.html ) | ` bitbucket ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
62
+ | [ Bitrise] ( http://devcenter.bitrise.io/faq/available-environment-variables/#exposed-by-bitriseio ) | ` bitrise ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
63
+ | [ Buddy] ( https://buddy.works/knowledge/deployments/how-use-environment-variables#default-environment-variables ) | ` buddy ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
64
+ | [ Buildkite] ( https://buildkite.com/docs/builds/environment-variables ) | ` buildkite ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ |
65
+ | [ CircleCI] ( https://circleci.com/docs/1.0/environment-variables ) | ` circleci ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ |
66
+ | [ Cirrus CI] ( https://cirrus-ci.org/guide/writing-tasks/#environment-variables ) | ` cirrus ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
67
+ | [ AWS CodeBuild] ( https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html ) | ` codebuild ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
68
+ | [ Codeship] ( https://documentation.codeship.com/basic/builds-and-configuration/set-environment-variables ) | ` codeship ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ |
69
+ | [ Drone] ( http://readme.drone.io/0.5/usage/environment-reference ) | ` drone ` | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ |
70
+ | [ Gitlab CI/CD] ( https://docs.gitlab.com/ce/ci/variables/README.html ) | ` gitlab ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ |
71
+ | [ Jenkins] ( https://wiki.jenkins.io/display/JENKINS/Building+a+software+project ) | ` jenkins ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
72
+ | [ Semaphore] ( https://semaphoreci.com/docs/available-environment-variables.html ) | ` semaphore ` | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
73
+ | [ Shippable] ( http://docs.shippable.com/ci/env-vars/#stdEnv ) | ` shippable ` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
74
+ | [ TeamCity] ( https://confluence.jetbrains.com/display/TCD10/Predefined+Build+Parameters ) | ` teamcity ` | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
75
+ | [ Travis CI] ( https://docs.travis-ci.com/user/environment-variables ) | ` travis ` | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
76
+ | [ Visual Studio Team Services] ( https://docs.microsoft.com/en-us/vsts/pipelines/build/variables ) | ` vsts ` | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ✅ |
77
+ | [ Wercker] ( http://devcenter.wercker.com/docs/environment-variables/available-env-vars#hs_cos_wrapper_name ) | ` wercker ` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
77
78
78
79
If none of the above CI services is detected, ` commit ` and ` branch ` are determined based on the local Git repository, and ` isCi ` is determined based on the ` CI ` environment variable.
79
80
0 commit comments