From 1a91c887e9745e8af8a80e6fdfe7b46e3b7ba931 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Oct 2017 22:31:25 +0300 Subject: Add triggers job and script for gitlab ci. --- .gitlab-ci.yml | 8 ++++++++ tools/ci/scripts/triggers.sh | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100755 tools/ci/scripts/triggers.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f9bdc5fc..eb9ae26f1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -432,6 +432,14 @@ nsiqcppstyle: tags: - docker +triggers: + stage: build + script: + - ./tools/ci/scripts/triggers.sh + <<: *job-push + variables: + PACKAGES: curl + gcc-7_sanitize_doctest_tests_i386: stage: build script: diff --git a/tools/ci/scripts/triggers.sh b/tools/ci/scripts/triggers.sh new file mode 100755 index 000000000..6bd8389b6 --- /dev/null +++ b/tools/ci/scripts/triggers.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +function run { + echo "running pipeline for $1" + curl --request POST --form "token=$BUILD_TRIGGER" --form ref=$1 https://gitlab.com/api/v4/projects/180398/trigger/pipeline || exit 1 +} + +run "ci_deheader" -- cgit v1.2.3-70-g09d2