1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-28 18:53:22 +02:00

misc: fix jenkinsfile

Change-Id: I043de5cdff377624382cfa4775e56d387fabc962
This commit is contained in:
Sébastien Blin 2022-12-02 11:29:43 -05:00
parent da61006eb9
commit 6c70897ed9

View file

@ -22,7 +22,11 @@
// - ansicolor plugin
pipeline {
agent 'jami-buildmachine-04.mtl.sfl'
agent {
node {
label 'jami-buildmachine-04.mtl.sfl'
}
}
triggers {
gerrit customUrl: '',
@ -47,8 +51,6 @@ pipeline {
description: 'The Gerrit refspec to fetch.')
}
def cpuCount = sh returnStdout: true, script: 'nproc || echo -n 4'
stage('SCM Checkout') {
deleteDir()
// Checkout jami-project to obtain daemon/LRC/client-qt repositories
@ -77,6 +79,7 @@ pipeline {
def jenkinsUID = sh(returnStdout: true, script: 'id -u jenkins').replaceAll("\n", '').trim()
def jenkinsGID = sh(returnStdout: true, script: 'id -g jenkins').replaceAll("\n", '').trim()
def jenkinsUser = jenkinsUID+':'+jenkinsGID
def cpuCount = sh returnStdout: true, script: 'nproc || echo -n 4'
docker.image('client-validation').withRun('-t -u '+jenkinsUser+' -v '+pwd()+':/foo:rw -w /foo -e BATCH_MODE=1', '/bin/bash') {
container -> code:{