Some checks failed
ben.de-roo.org/pipeline/head There was a failure building this commit
28 lines
589 B
Groovy
28 lines
589 B
Groovy
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/
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|