summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorBalasankar C <balasankar@gitlab.com>2017-05-09 01:59:27 +0530
committerBalasankar C <balasankar@gitlab.com>2017-05-09 13:21:33 +0530
commitc44680d1b8e0d14ab46f5785c508b286ee9271b8 (patch)
tree99e09de72209bd1263470b61020a38322ad6a3d8 /.gitlab-ci.yml
parent8db76243abfd1ebc98553426075f3fb4ddab54fe (diff)
downloadgitlab-ce-c44680d1b8e0d14ab46f5785c508b286ee9271b8.tar.gz
Print triggered pipeline id in a better format
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 588f255eff8..39546e888d2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -141,6 +141,7 @@ stages:
# Trigger a package build on omnibus-gitlab repository
build-package:
+ before_script: []
services: []
variables:
SETUP_DB: "false"
@@ -157,7 +158,8 @@ build-package:
# Collect version details of all components
- for f in *_VERSION; do echo "variables[$f]=$(cat $f)" >> version_details; done
# Trigger the API and pass values collected above as parameters to it
- - cat version_details | tr '\n' '&' | curl -X POST https://gitlab.com/api/v4/projects/20699/trigger/pipeline --data-binary @-
+ - pipeline_id=$(cat version_details | tr '\n' '&' | curl -s -X POST https://gitlab.com/api/v4/projects/20699/trigger/pipeline --data-binary @- | ruby -e "require 'json'; puts JSON.parse(STDIN.read)['id']") > /dev/null
+ - echo "Triggered pipeline can be found at https://gitlab.com/gitlab-org/omnibus-gitlab/pipelines/${pipeline_id}"
- rm version_details
# Prepare and merge knapsack tests