This repository has been archived on 2023-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
sat-sw-website-legacy/automation/Jenkinsfile

23 lines
463 B
Plaintext
Raw Normal View History

2023-09-12 10:28:39 +02:00
pipeline {
2023-09-19 21:20:24 +02:00
agent {
dockerfile {
dir 'automation'
reuseNode true
}
}
// agent any
2023-09-12 10:30:34 +02:00
stages {
stage('Deployment') {
2023-09-19 20:49:40 +02:00
when {
branch 'main'
}
2023-09-12 10:30:34 +02:00
steps {
2023-09-19 21:17:02 +02:00
sshagent(credentials: ['documentation-buildfix']) {
2023-09-12 10:33:50 +02:00
// Deploy to Apache webserver
2023-09-19 21:17:02 +02:00
sh 'rsync -r --delete --exclude projects/* --exclude static/font-univers . buildfix@documentation.irs.uni-stuttgart.de:/'
}
2023-09-19 21:10:54 +02:00
}
2023-09-12 10:30:34 +02:00
}
}
2023-09-12 10:28:39 +02:00
}