Skip to content
Snippets Groups Projects
Commit 4316f84e authored by Neda Moeini's avatar Neda Moeini
Browse files

Changed curl to variable.

parent ddb4ea29
No related branches found
No related tags found
No related merge requests found
Pipeline #84433 passed
...@@ -59,13 +59,16 @@ sonarqube: ...@@ -59,13 +59,16 @@ sonarqube:
trigger_jenkins_build: trigger_jenkins_build:
stage: trigger_jenkins_build stage: trigger_jenkins_build
image: ubuntu:latest variables:
PROJECT_NAME: 'geant-service-orchestrator'
CURL_COMMAND: 'curl "https://test-swd-release-service01.geant.org/job/build-python-snapshot/buildWithParameters" \
--user "$JENKINS_USERNAME:$JENKINS_API_TOKEN" \
--data "PROJECT=${PROJECT_NAME}"'
script: script:
- curl "https://test-swd-release-service01.geant.org/job/build-python-snapshot/buildWithParameters" \ - echo "Triggering Jenkins build"
--user $JENKINS_USERNAME:$JENKINS_API_TOKEN \ - echo $CURL_COMMAND
--data "PROJECT=${PROJECT_NAME}"
# only: # only:
# - develop # - develop
tags: tags:
- docker-executor - docker-executor
# dependencies: # dependencies:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment