vx-builder 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vx/builder/script_builder/env.rb +7 -0
- data/lib/vx/builder/version.rb +1 -1
- data/spec/fixtures/integration/ruby/deploy/d.after_script.sh +3 -0
- data/spec/fixtures/integration/ruby/deploy/d.before_script.sh +3 -0
- data/spec/fixtures/integration/ruby/language/after_script.sh +3 -0
- data/spec/fixtures/integration/ruby/language/before_script.sh +3 -0
- data/spec/fixtures/integration/ruby/matrix/0.after_script.sh +3 -0
- data/spec/fixtures/integration/ruby/matrix/0.before_script.sh +3 -0
- data/spec/fixtures/integration/ruby/matrix/1.after_script.sh +3 -0
- data/spec/fixtures/integration/ruby/matrix/1.before_script.sh +3 -0
- data/spec/fixtures/integration/ruby/matrix/d.after_script.sh +3 -0
- data/spec/fixtures/integration/ruby/matrix/d.before_script.sh +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1f383694898968e3dd295d873d6904ce218ddd8
|
4
|
+
data.tar.gz: 71db5fa86dc4ea0b68fbc7d18d458415815921db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: badf8b759b75cbed107c207969530d6463e8157da6242497f270e1d8eb7cc26ddbb1ab9d5c3bd80d34140cee1b475ec21f3c7955701da5a0169247245a69b5f4
|
7
|
+
data.tar.gz: 897ef19fe8c428f583386bea7d38d485988a4f9ff3c4393216f9e351f6ac7b8d44bbbf29644c67a8ac3d11f4d29d77c5c24d6eb7c832d29b21eeb20b829982b2
|
@@ -25,8 +25,15 @@ module Vx
|
|
25
25
|
private
|
26
26
|
|
27
27
|
def export_vars(env, collection)
|
28
|
+
collection << "export CI=1"
|
28
29
|
collection << "export CI_JOB_ID=#{env.task.job_id}"
|
29
30
|
collection << "export CI_BUILD_ID=#{env.task.build_id}"
|
31
|
+
collection << "export CI_PROJECT_NAME=#{env.task.name}"
|
32
|
+
collection << "export CI_BUILD_SHA=#{env.task.sha}"
|
33
|
+
|
34
|
+
if p = env.task.pull_request_id
|
35
|
+
collection << "export CI_PULL_REQUEST_ID=#{p}"
|
36
|
+
end
|
30
37
|
|
31
38
|
if b = env.task.branch
|
32
39
|
collection << "export CI_BRANCH=#{b}"
|
data/lib/vx/builder/version.rb
CHANGED
@@ -4,8 +4,11 @@ set -e
|
|
4
4
|
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
5
5
|
export LC_ALL=en_US.UTF8
|
6
6
|
export DEBIAN_FRONTEND=noninteractive
|
7
|
+
export CI=1
|
7
8
|
export CI_JOB_ID=1
|
8
9
|
export CI_BUILD_ID=12
|
10
|
+
export CI_PROJECT_NAME=name
|
11
|
+
export CI_BUILD_SHA=b665f90239563c030f1b280a434b3d84daeda1bd
|
9
12
|
export CI_BRANCH=master
|
10
13
|
echo \$\ export\ FOO
|
11
14
|
export FOO
|
@@ -4,8 +4,11 @@ set -e
|
|
4
4
|
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
5
5
|
export LC_ALL=en_US.UTF8
|
6
6
|
export DEBIAN_FRONTEND=noninteractive
|
7
|
+
export CI=1
|
7
8
|
export CI_JOB_ID=1
|
8
9
|
export CI_BUILD_ID=12
|
10
|
+
export CI_PROJECT_NAME=name
|
11
|
+
export CI_BUILD_SHA=b665f90239563c030f1b280a434b3d84daeda1bd
|
9
12
|
export CI_BRANCH=master
|
10
13
|
export VX_ROOT=$(pwd)
|
11
14
|
mkdir -p ${VX_ROOT}/data/name
|
@@ -4,8 +4,11 @@ set -e
|
|
4
4
|
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
5
5
|
export LC_ALL=en_US.UTF8
|
6
6
|
export DEBIAN_FRONTEND=noninteractive
|
7
|
+
export CI=1
|
7
8
|
export CI_JOB_ID=1
|
8
9
|
export CI_BUILD_ID=12
|
10
|
+
export CI_PROJECT_NAME=name
|
11
|
+
export CI_BUILD_SHA=b665f90239563c030f1b280a434b3d84daeda1bd
|
9
12
|
export CI_BRANCH=master
|
10
13
|
export VX_ROOT=$(pwd)
|
11
14
|
mkdir -p ${VX_ROOT}/data/name
|
@@ -4,8 +4,11 @@ set -e
|
|
4
4
|
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
5
5
|
export LC_ALL=en_US.UTF8
|
6
6
|
export DEBIAN_FRONTEND=noninteractive
|
7
|
+
export CI=1
|
7
8
|
export CI_JOB_ID=1
|
8
9
|
export CI_BUILD_ID=12
|
10
|
+
export CI_PROJECT_NAME=name
|
11
|
+
export CI_BUILD_SHA=b665f90239563c030f1b280a434b3d84daeda1bd
|
9
12
|
export CI_BRANCH=master
|
10
13
|
export VX_ROOT=$(pwd)
|
11
14
|
mkdir -p ${VX_ROOT}/data/name
|
@@ -4,8 +4,11 @@ set -e
|
|
4
4
|
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
5
5
|
export LC_ALL=en_US.UTF8
|
6
6
|
export DEBIAN_FRONTEND=noninteractive
|
7
|
+
export CI=1
|
7
8
|
export CI_JOB_ID=1
|
8
9
|
export CI_BUILD_ID=12
|
10
|
+
export CI_PROJECT_NAME=name
|
11
|
+
export CI_BUILD_SHA=b665f90239563c030f1b280a434b3d84daeda1bd
|
9
12
|
export CI_BRANCH=master
|
10
13
|
export VX_ROOT=$(pwd)
|
11
14
|
mkdir -p ${VX_ROOT}/data/name
|