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 +}