web label
All checks were successful
Web/pipeline/head This commit looks good
Jenkins
Ellpeck/Web/pipeline/head This commit looks good

This commit is contained in:
Ell 2023-04-11 14:31:21 +02:00
parent 3ce650ea86
commit a1c0452607

12
Jenkinsfile vendored
View file

@ -1,9 +1,9 @@
pipeline { pipeline {
agent any agent { label 'web' }
stages { stages {
stage('Build') { stage('Build') {
when { when {
branch 'master' branch 'master'
} }
steps { steps {
sh '''cd main sh '''cd main
@ -12,8 +12,8 @@ pipeline {
} }
} }
stage('Deploy') { stage('Deploy') {
when { when {
branch 'master' branch 'master'
} }
steps { steps {
sh "rm -rf /var/www/ellpeck/*" sh "rm -rf /var/www/ellpeck/*"
@ -21,4 +21,4 @@ pipeline {
} }
} }
} }
} }