Skip to content
Snippets Groups Projects
Commit 6c70897e authored by Sébastien Blin's avatar Sébastien Blin
Browse files

misc: fix jenkinsfile

Change-Id: I043de5cdff377624382cfa4775e56d387fabc962
parent da61006e
Branches
Tags
No related merge requests found
......@@ -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:{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment