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

Added trigger_jenkins_build job to the pipeline.

parent 3a95b639
No related branches found
No related tags found
1 merge request!100Added trigger_jenkins_build job to the pipeline.
Pipeline #84488 passed
......@@ -3,6 +3,7 @@ stages:
- tox
- documentation
- sonarqube
- trigger_jenkins_build
include:
- docs/.gitlab-ci.yml
......@@ -55,3 +56,16 @@ sonarqube:
- sonar-scanner -Dsonar.login=$SONAR_TOKEN -Dproject.settings=./sonar.properties
tags:
- docker-executor
trigger_jenkins_build:
stage: trigger_jenkins_build
image: alpine:latest
before_script:
- apk add --no-cache curl
script: curl -u "$JENKINS_USERNAME:$JENKINS_API_TOKEN"
--data "PROJECT=geant-service-orchestrator"
"http://test-swd-release-service01.geant.org:8080/job/build-python-snapshot/buildWithParameters"
only:
- develop
tags:
- docker-executor
// 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