1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-06-03 22:03:37 +02:00

ensure docs are published on a web agent

This commit is contained in:
Ell 2023-04-12 22:19:57 +02:00
parent 5f02e701d9
commit 1b2cbb6afd

5
Jenkinsfile vendored
View file

@ -16,13 +16,18 @@ pipeline {
stage('Document') { stage('Document') {
steps { steps {
sh 'dotnet cake --target Document --branch ' + env.BRANCH_NAME sh 'dotnet cake --target Document --branch ' + env.BRANCH_NAME
stash includes: 'Docs/_site/**', name: 'site'
} }
} }
stage('Publish Docs') { stage('Publish Docs') {
agent {
label 'web'
}
when { when {
branch 'release' branch 'release'
} }
steps { steps {
unstash 'site'
sh 'rm -rf /var/www/MLEM/*' sh 'rm -rf /var/www/MLEM/*'
sh 'cp Docs/_site/** /var/www/MLEM/ -r' sh 'cp Docs/_site/** /var/www/MLEM/ -r'
} }