1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-25 05:58:35 +01:00

ensure all stages run on the same node

This commit is contained in:
Ell 2023-04-15 17:19:26 +02:00
parent 1f315def2d
commit 08931b49ac

15
Jenkinsfile vendored
View file

@ -1,4 +1,7 @@
pipeline { pipeline {
agent none
stages {
stage('Cake') {
agent any agent any
stages { stages {
stage('Submodules') { stage('Submodules') {
@ -6,7 +9,7 @@ pipeline {
sh 'git submodule update --init --recursive --force' sh 'git submodule update --init --recursive --force'
} }
} }
stage('Cake Build') { stage('Build') {
steps { steps {
sh 'dotnet tool restore' sh 'dotnet tool restore'
// we use xvfb to allow for graphics-dependent tests // we use xvfb to allow for graphics-dependent tests
@ -19,13 +22,11 @@ pipeline {
stash includes: 'Docs/_site/**', name: 'site' stash includes: 'Docs/_site/**', name: 'site'
} }
} }
}
}
stage('Publish Docs') { stage('Publish Docs') {
agent { agent { label 'web' }
label 'web' when { branch 'release' }
}
when {
branch 'release'
}
steps { steps {
unstash 'site' unstash 'site'
sh 'rm -rf /var/www/MLEM/*' sh 'rm -rf /var/www/MLEM/*'