25 lines
490 B
Groovy
25 lines
490 B
Groovy
pipeline {
|
|
agent {
|
|
dockerfile {
|
|
dir 'automation'
|
|
reuseNode true
|
|
}
|
|
}
|
|
stages {
|
|
stage('Deployment') {
|
|
when {
|
|
branch 'main'
|
|
}
|
|
steps {
|
|
sshagent(credentials: ['documentation-buildfix']) {
|
|
// Deploy to Apache webserver
|
|
sh """
|
|
rsync -r --exclude projects/* --exclude static/font-univers \\
|
|
. buildfix@documentation.irs.uni-stuttgart.de:/ --delete \\
|
|
"""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|