Thanasoft-H2F/Jenkinsfile

23 lines
554 B
Groovy

pipeline {
agent any
stages {
stage ("deploy to dev ezway") {
when { branch 'staging' }
agent { label 'apache && dev' }
steps {
sh '''cd /var/www/nextcloud/nextcloud/custom_apps
sudo su jenkins -c "git stash && git pull origin staging" '''
}
}
stage ("deploy h2f to dev ezway") {
when { branch 'releases/release-h2f' }
agent { label 'apache && dev' }
steps {
sh '''cd /var/www/h2f-nextcloud/custom_apps
sudo su jenkins -c "git stash && git pull origin releases/release-h2f" '''
}
}
}
}