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

25 lines
490 B
Plaintext
Raw Normal View History

2023-09-12 10:28:39 +02:00
pipeline {
2023-09-12 10:30:34 +02:00
agent {
dockerfile {
dir 'automation'
reuseNode true
2023-09-12 10:28:39 +02:00
}
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-12 10:33:50 +02:00
sshagent(credentials: ['documentation-buildfix']) {
// Deploy to Apache webserver
2023-09-19 20:40:58 +02:00
sh """
rsync -r --exclude projects/* --exclude static/font-univers \\
. buildfix@documentation.irs.uni-stuttgart.de:/ --delete \\
"""
2023-09-12 10:33:50 +02:00
}
2023-09-12 10:30:34 +02:00
}
}
}
2023-09-12 10:28:39 +02:00
}