lib/vx/builder/script_builder/env.rb in vx-builder-0.3.8 vs lib/vx/builder/script_builder/env.rb in vx-builder-0.3.9

- old
+ new

@@ -23,11 +23,18 @@ end private def export_vars(env, collection) + collection << "export CI=1" collection << "export CI_JOB_ID=#{env.task.job_id}" collection << "export CI_BUILD_ID=#{env.task.build_id}" + collection << "export CI_PROJECT_NAME=#{env.task.name}" + collection << "export CI_BUILD_SHA=#{env.task.sha}" + + if p = env.task.pull_request_id + collection << "export CI_PULL_REQUEST_ID=#{p}" + end if b = env.task.branch collection << "export CI_BRANCH=#{b}" end end