Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
logilab-mtconverter
Commits
a5f52ec5a43b
Commit
434d57f3
authored
Jul 22, 2020
by
Laurent Peuch
Browse files
build: use new gitlab syntax for triggering other pipeline
parent
14a793e96b18
Pipeline
#10522
failed with stages
in 2 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a5f52ec5
...
...
@@ -54,14 +54,14 @@ mypy:
stage
:
tests
script
:
tox -e mypy
trigger-other-pipelines
:
only
:
refs
:
-
branch/default
trigger-cubicweb-pipeline
:
stage
:
after-tests
except
:
variables
:
-
$TRIGGERED_FROM_OTHER_PROJECT
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
-
$TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "logilab-constraint"
variables
:
TRIGGERED_FROM_OTHER_PROJECT
:
"
logilab-constraint"
trigger
:
project
:
cubicweb/cubicweb
branch
:
branch/default
strategy
:
depend
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment