2023-12-11 14:46:13 +01:00
|
|
|
|
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
dir 'automation'
|
|
|
|
reuseNode true
|
|
|
|
args '--network host'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// agent any
|
|
|
|
stages {
|
|
|
|
stage('Deployment') {
|
|
|
|
when {
|
|
|
|
branch 'main'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'npm install'
|
|
|
|
sh 'hugo'
|
|
|
|
sshagent(credentials: ['documentation-buildfix']) {
|
|
|
|
// Deploy to Apache webserver
|
2023-12-12 13:21:57 +01:00
|
|
|
sh "rsync -r public/ buildfix@documentation.irs.uni-stuttgart.de:/"
|
2023-12-11 14:46:13 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|