Update 'Jenkinsfile'

set agent with label parameter
This commit is contained in:
Roberto Cirillo 2023-01-12 16:32:04 +01:00
parent aaec6c1ad4
commit aa376f8164
1 changed files with 8 additions and 1 deletions

9
Jenkinsfile vendored
View File

@ -5,7 +5,7 @@
pipeline { pipeline {
agent any
options { options {
ansiColor('xterm') ansiColor('xterm')
} }
@ -40,6 +40,13 @@ pipeline {
defaultValue: 'CI', defaultValue: 'CI',
description: 'Run on all nodes matching the label') description: 'Run on all nodes matching the label')
} }
agent
{
node
{
label "${exec_label}"
}
}
stages { stages {
stage('Checkout git project') { stage('Checkout git project') {
steps { steps {