Commit 256d3f81 authored by Mitar's avatar Mitar

Cleanup of trigger logic.

parent 027df882
......@@ -54,10 +54,13 @@ trigger_images_rebuild:
script:
# This triggers a pipeline in https://gitlab.com/datadrivendiscovery/images
- if [ -n "$TRIGGER_TOKEN" ]; then curl --fail -X POST -F token=$TRIGGER_TOKEN -F ref=master https://gitlab.com/api/v4/projects/5024100/trigger/pipeline; fi
- curl --fail -X POST -F token=$TRIGGER_TOKEN -F ref=master https://gitlab.com/api/v4/projects/5024100/trigger/pipeline
only:
- master
refs:
- [email protected]/primitives
variables:
- $TRIGGER_TOKEN
trigger_index_rebuild:
stage: deploy
......@@ -68,7 +71,11 @@ trigger_index_rebuild:
image: registry.gitlab.com/datadrivendiscovery/images/testing:ubuntu-bionic-python36
script:
- if [ -n "$INDEX_PRIMITIVES_TOKEN" ]; then curl --fail -X POST -F token=$INDEX_PRIMITIVES_TOKEN -F ref=primitives https://gitlab.datadrivendiscovery.org/api/v4/projects/528/trigger/pipeline; fi
# This triggers a pipeline in https://gitlab.datadrivendiscovery.org/jpl/marvin
- curl --fail -X POST -F token=$INDEX_PRIMITIVES_TOKEN -F ref=primitives https://gitlab.datadrivendiscovery.org/api/v4/projects/528/trigger/pipeline
only:
- master
refs:
- [email protected]/primitives
variables:
- $INDEX_PRIMITIVES_TOKEN
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment