3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/terraspace/cloud/vcs/local_env.rb', line 3
def vars
{
host: ENV['TS_VCS_HOST'] || ENV['VCS_HOST'] || ENV['GIT_HOST'],
full_repo: ENV['TS_VCS_REPO'] || ENV['VCS_REPO'] || ENV['GIT_REPO'],
branch_name: ENV['TS_VCS_BRANCH'],
commit_url: ENV['TS_VCS_COMMIT_URL'],
branch_url: ENV['TS_VCS_BRANCH_URL'],
pr_url: ENV['TS_VCS_PR_URL'],
build_url: ENV['TS_VCS_BUILD_URL'],
build_type: ENV['TS_VCS_BUILD_TYPE'],
sha: ENV['TS_VCS_SHA'],
commit_message: ENV['TS_VCS_COMMIT_MESSAGE'],
build_id: ENV['TS_VCS_BUILD_ID'],
build_number: ENV['TS_VCS_BUILD_NUMBER'],
}.compact end
|