From a1c04526079dc36b2725bf408881b3708b170c96 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 11 Apr 2023 14:31:21 +0200 Subject: [PATCH] web label --- Jenkinsfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c5d2ecb..caea4ca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,9 @@ pipeline { - agent any + agent { label 'web' } stages { stage('Build') { - when { - branch 'master' + when { + branch 'master' } steps { sh '''cd main @@ -12,8 +12,8 @@ pipeline { } } stage('Deploy') { - when { - branch 'master' + when { + branch 'master' } steps { sh "rm -rf /var/www/ellpeck/*" @@ -21,4 +21,4 @@ pipeline { } } } -} \ No newline at end of file +}