Commit 5a704da2 authored by Laurent Peuch's avatar Laurent Peuch

build: use new gitlab syntax for triggering other pipeline

parent af9e4aef347
Pipeline #12602 failed with stages
in 3 minutes and 40 seconds
......@@ -27,16 +27,77 @@ mypy:
stage: tests
script: tox -e mypy
trigger-other-pipelines:
trigger-cubicweb-pipeline:
stage: after-tests
script:
# regarding the " everywhere when there is a '%': yaml is extremly weird when % are involved
- curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F "token=$CUBICWEB_PIPELINE_TRIGGER_TOKEN" -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/385/trigger/pipeline -w "\nhttp code:"\ "%{http_code}\n" -f
- curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F "token=$RQL_PIPELINE_TRIGGER_TOKEN" -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/300/trigger/pipeline -w "\nhttp code:"\ "%{http_code}\n" -f
- curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F "token=$YAMS_PIPELINE_TRIGGER_TOKEN" -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/352/trigger/pipeline -w "\nhttp code:"\ "%{http_code}\n" -f
- curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F "token=$LOGILAB_CONSTRAINT_PIPELINE_TRIGGER_TOKEN" -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/409/trigger/pipeline -w "\nhttp code:"\ "%{http_code}\n" -f
- curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F "token=$LOGILAB_MTCONVERTER_PIPELINE_TRIGGER_TOKEN" -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/410/trigger/pipeline -w "\nhttp code:"\ "%{http_code}\n" -f
- curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F "token=$LOGILAB_DATABASE_PIPELINE_TRIGGER_TOKEN" -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/248/trigger/pipeline -w "\nhttp code:"\ "%{http_code}\n" -f
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-common"
variables:
TRIGGERED_FROM_OTHER_PROJECT: "logilab-common"
trigger:
project: cubicweb/cubicweb
branch: branch/default
strategy: depend
trigger-yams-pipeline:
stage: after-tests
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-common"
variables:
TRIGGERED_FROM_OTHER_PROJECT: "logilab-common"
trigger:
project: open-source/yams
branch: branch/default
strategy: depend
trigger-rql-pipeline:
stage: after-tests
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-common"
variables:
TRIGGERED_FROM_OTHER_PROJECT: "logilab-common"
trigger:
project: open-source/CubicWeb/RQL
branch: branch/default
strategy: depend
trigger-logilab-database-pipeline:
stage: after-tests
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-common"
variables:
TRIGGERED_FROM_OTHER_PROJECT: "logilab-common"
trigger:
project: open-source/logilab-database
branch: branch/default
strategy: depend
trigger-logilab-constraint-pipeline:
stage: after-tests
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-common"
variables:
TRIGGERED_FROM_OTHER_PROJECT: "logilab-common"
trigger:
project: open-source/logilab-constraint
branch: branch/default
strategy: depend
trigger-logilab-mtconverter-pipeline:
stage: after-tests
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-common"
variables:
TRIGGERED_FROM_OTHER_PROJECT: "logilab-common"
trigger:
project: open-source/logilab-mtconverter
branch: branch/default
strategy: depend
trigger-readthedocs:
only:
......
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