Skip to content
This repository was archived by the owner on May 12, 2018. It is now read-only.

Commit 7e02158

Browse files
committed
Merge branch 'master' into 'master'
Exposed project directory and project id to the build environment Exposing the project directory and ID will help with automating Docker integration, for example, mapping a directory in a Docker to the build directory, etc. See merge request !5
2 parents 8cedd22 + 328dcb4 commit 7e02158

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/build.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ def execute(cmd)
144144
@process.environment['CI_BUILD_ID'] = @id
145145
@process.environment['CI_BUILD_REPO'] = @repo_url
146146

147+
@process.environment['CI_PROJECT_ID'] = @project_id
148+
@process.environment['CI_PROJECT_DIR'] = project_dir
149+
147150
@process.start
148151

149152
@tmp_file_path = @tmp_file.path

0 commit comments

Comments
 (0)