lib/vx/builder/script_builder/env.rb in vx-builder-0.3.9 vs lib/vx/builder/script_builder/env.rb in vx-builder-0.3.10
- old
+ new
@@ -25,10 +25,12 @@
private
def export_vars(env, collection)
collection << "export CI=1"
collection << "export CI_JOB_ID=#{env.task.job_id}"
+ 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}"
if p = env.task.pull_request_id
collection << "export CI_PULL_REQUEST_ID=#{p}"