explicit agent definition

This commit is contained in:
Milan Petrovic 2025-06-11 15:19:07 +02:00
parent be9b774c1d
commit 9ef77008cc

4
Jenkinsfile vendored
View file

@ -1,5 +1,5 @@
pipeline {
agent any
agent none
environment {
GIT_COMMIT_SHORT = sh(script: "git rev-parse --short HEAD", returnStdout: true).trim()
@ -9,6 +9,7 @@ pipeline {
}
stages {
agent { label 'vps-agent1' }
stage('checkStyle') {
when { not {branch 'main' }}
steps {
@ -17,6 +18,7 @@ pipeline {
}
stage('Test') {
agent { label 'vps-agent1' }
when { not {branch 'main' }}
steps {
sh './gradlew test'