From e46c4c64128621c2e84233e27b63040c027be88f Mon Sep 17 00:00:00 2001 From: varac Date: Mon, 27 Jun 2016 11:33:38 +0200 Subject: [wip] testing .gitlab-ci.yml --- .gitlab-ci.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3404346..2cd09eb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,25 +1,23 @@ -before_script: - - ruby -v - image: ruby:2.1 stages: - syntax - build + - trigger build: stage: build script: - rake build - artifacts: - paths: - - pkg/leap_cli-1.9.gem + # disable artefact upload until it's fixed + # see https://leap.se/code/issues/8221 + #artifacts: + # paths: + # - pkg/leap_cli-1.9.gem -# trigger leap_platform pipeline using same REF -# as it is used for this project -# (i.e. a push to leap_cli:develop will trigger -# a leap_platform:develop build) +# trigger leap_platform pipeline trigger: + stage: trigger type: deploy script: - - "curl -X POST -F token=$PLATFORM_TRIGGER_TOKEN -F ref=$CI_BUILD_REF_NAME https://0xacab.org/api/v3/projects/129/trigger/builds" + - curl -s -X POST -F token=${PLATFORM_TRIGGER_TOKEN} -F ref=develop https://0xacab.org/api/v3/projects/129/trigger/builds -- cgit v1.2.3