From 4c96fecd9e5e8f261affe3a93cace1596670a123 Mon Sep 17 00:00:00 2001 From: Milan Petrovic <5rovicmilan8@gmail.com> Date: Wed, 11 Jun 2025 15:34:46 +0200 Subject: [PATCH] global agent --- Jenkinsfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1b360c789..74b4c414f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline { - agent any + agent { label 'vps-agent1' } environment { GIT_COMMIT_SHORT = sh(script: "git rev-parse --short HEAD", returnStdout: true).trim() @@ -10,7 +10,6 @@ pipeline { stages { stage('checkStyle') { - agent { label 'vps-agent1' } when { not {branch 'main' }} steps { echo "Syle Check" @@ -19,7 +18,6 @@ pipeline { } stage('Test') { - agent { label 'vps-agent1' } when { not {branch 'main' }} steps { echo "Running tests" @@ -28,7 +26,6 @@ pipeline { } stage('Build') { - agent { label 'vps-agent1' } steps { script { def branch = env.BRANCH_NAME