Use a per node ignite account to avoid needing to do locking.
pipeline {
- agent any
+ agent {label: 'ignite-account'}
tools {
jdk 'JDK8'
maven 'maven-3.3.9'
@@ -12,7 +12,7 @@ pipeline {
stages {
stage('prepare') {
steps {
- withCredentials([string(credentialsId: 'api.rh-idev.openshift.com', variable: 'TOKEN')]) {
+ withCredentials([string(credentialsId: "${env.IGNITE_ACCOUNT_CREDENTIAL}", variable: 'TOKEN')]) {
sh """
oc login --server=https://api.rh-idev.openshift.com --token=$TOKEN
oc project syndesis-ci
