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

Added trigger_jenkins_build job to the pipeline.

parent c530567b
No related branches found
No related tags found
No related merge requests found
Pipeline #84420 failed
...@@ -3,6 +3,7 @@ stages: ...@@ -3,6 +3,7 @@ stages:
- tox - tox
- documentation - documentation
- sonarqube - sonarqube
- trigger_jenkins_build
include: include:
- docs/.gitlab-ci.yml - docs/.gitlab-ci.yml
...@@ -55,3 +56,14 @@ sonarqube: ...@@ -55,3 +56,14 @@ sonarqube:
- sonar-scanner -Dsonar.login=$SONAR_TOKEN -Dproject.settings=./sonar.properties - sonar-scanner -Dsonar.login=$SONAR_TOKEN -Dproject.settings=./sonar.properties
tags: tags:
- docker-executor - docker-executor
trigger_jenkins_build:
stage: deploy
script:
- curl "http://test-swd-release-service01.geant.org:8080/job/build-python-snapshot/buildWithParameters" \
--user $JENKINS_USERNAME:$JENKINS_API_TOKEN \
--data "PROJECT=${PROJECT_NAME}"
only:
- develop
tags:
- docker-executor
\ No newline at end of file
// https://gitlab.geant.net/live-projects/jenkins-pipeline/-/tree/master/vars
library 'SWDPipeline'
// Parameters:
// name (must match the name of the project in GitLab/SWD release jenkins)
String name = 'geant-service-orchestrator'
// emails of people to always notify on build status changes
List<String> extraRecipients = ['erik.reid@geant.org']
// python versions (docker tags) to test against, must be explicit versions
List<String> pythonTestVersions = ['3.11']
// Environment variables you want to pass
Map<String, String> appEnvironmentVariables = [
'SKIP_ALL_TESTS': '1',
// add more as needed
]
SimplePythonBuild(name, extraRecipients, pythonTestVersions, appEnvironmentVariables)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment