1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-15 05:38:46 +02: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

47
Jenkinsfile vendored
View file

@ -1,31 +1,32 @@
pipeline {
agent any
agent none
stages {
stage('Submodules') {
steps {
sh 'git submodule update --init --recursive --force'
}
}
stage('Cake Build') {
steps {
sh 'dotnet tool restore'
// we use xvfb to allow for graphics-dependent tests
sh 'xvfb-run -a dotnet cake --target Publish --branch ' + env.BRANCH_NAME
}
}
stage('Document') {
steps {
sh 'dotnet cake --target Document --branch ' + env.BRANCH_NAME
stash includes: 'Docs/_site/**', name: 'site'
stage('Cake') {
agent any
stages {
stage('Submodules') {
steps {
sh 'git submodule update --init --recursive --force'
}
}
stage('Build') {
steps {
sh 'dotnet tool restore'
// we use xvfb to allow for graphics-dependent tests
sh 'xvfb-run -a dotnet cake --target Publish --branch ' + env.BRANCH_NAME
}
}
stage('Document') {
steps {
sh 'dotnet cake --target Document --branch ' + env.BRANCH_NAME
stash includes: 'Docs/_site/**', name: 'site'
}
}
}
}
stage('Publish Docs') {
agent {
label 'web'
}
when {
branch 'release'
}
agent { label 'web' }
when { branch 'release' }
steps {
unstash 'site'
sh 'rm -rf /var/www/MLEM/*'