diff --git a/.gitignore b/.gitignore index 3f85443..c6efbf6 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ !calendar/ !gestion/ +!Jenkinsfile !calendar/** !gestion/** diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..69c378d --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,13 @@ +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 pull origin staging" ''' + } + } + } +}