From 60922ea3c70bbfe14f81d3fc35b094041a4273cf Mon Sep 17 00:00:00 2001 From: Bartosz Kuzma Date: Sat, 18 Mar 2023 08:31:12 +0100 Subject: [PATCH] Jenkins pipeline (#123) Reviewed-on: https://gitea.release11.com/R11/release11-tools-web/pulls/123 --- Jenkinsfile | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 861709e..8ad8e25 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,16 @@ -node('master'){ - stage('git pull'){ - git credentialsId: '7724c11a-2509-4aa3-9862-106aa354c5b8', url: 'ssh://_git@phabricator.release11.com/diffusion/CZOPW/czopw.git' - } - stage('build & deploy'){ - sh 'cd Web/ && docker-compose --context gordon up --force-recreate --build -d' - } - +pipeline { + agent any + stages { + stage('Run Tools Deployment Job') { + steps { + build( + job: '../tools-deployment', + parameters: [ + string(name: 'TOOLS_BRANCH', value: "${GIT_BRANCH}") + ] + ) + } + } + } } -