Add Jenkinsfile
Some checks failed
ben.de-roo.org/pipeline/head There was a failure building this commit
Some checks failed
ben.de-roo.org/pipeline/head There was a failure building this commit
This commit is contained in:
27
Jenkinsfile
vendored
Normal file
27
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
triggers {
|
||||||
|
pollSCM('') // Webhook triggert build
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Checkout') {
|
||||||
|
steps {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Deploy to web14') {
|
||||||
|
steps {
|
||||||
|
sshagent(credentials: ['web14-www-data-ssh']) {
|
||||||
|
sh '''
|
||||||
|
rsync -avz --delete \
|
||||||
|
--exclude .git \
|
||||||
|
./ www-data@web14:/var/www/ben.de-roo.org/
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user