From 9ef77008cc504b645afb24b7dde43a5ae9d74910 Mon Sep 17 00:00:00 2001 From: Milan Petrovic <5rovicmilan8@gmail.com> Date: Wed, 11 Jun 2025 15:19:07 +0200 Subject: [PATCH] explicit agent definition --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e703d570f..f8ef4971e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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'