diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..60648a4 --- /dev/null +++ b/Jenkinsfile @@ -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/ + ''' + } + } + } + } +}