Add automatically deployement
This commit is contained in:
parent
d1de6d901e
commit
b24f2e94a8
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
!calendar/
|
!calendar/
|
||||||
!gestion/
|
!gestion/
|
||||||
|
!Jenkinsfile
|
||||||
|
|
||||||
!calendar/**
|
!calendar/**
|
||||||
!gestion/**
|
!gestion/**
|
||||||
|
|||||||
13
Jenkinsfile
vendored
Normal file
13
Jenkinsfile
vendored
Normal file
@ -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" '''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user