lib/vx/builder/script_builder/env.rb in vx-builder-0.5.35 vs lib/vx/builder/script_builder/env.rb in vx-builder-0.5.36
- old
+ new
@@ -30,9 +30,10 @@
collection << "export CI_JOB_NUMBER=#{env.task.job_number}"
collection << "export CI_BUILD_ID=#{env.task.build_id}"
collection << "export CI_BUILD_NUMBER=#{env.task.build_number}"
collection << "export CI_PROJECT_NAME=#{env.task.name}"
collection << "export CI_BUILD_SHA=#{env.task.sha}"
+ collection << "export CI_PROJECT_TOKEN=#{env.task.project_token}" if env.task.project_token
collection << "export DISPLAY=:99"
if p = env.task.pull_request_id
collection << "export CI_PULL_REQUEST_ID=#{p}"
end