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:
parent
1f315def2d
commit
08931b49ac
1 changed files with 24 additions and 23 deletions
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
|
@ -1,4 +1,7 @@
|
|||
pipeline {
|
||||
agent none
|
||||
stages {
|
||||
stage('Cake') {
|
||||
agent any
|
||||
stages {
|
||||
stage('Submodules') {
|
||||
|
@ -6,7 +9,7 @@ pipeline {
|
|||
sh 'git submodule update --init --recursive --force'
|
||||
}
|
||||
}
|
||||
stage('Cake Build') {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'dotnet tool restore'
|
||||
// we use xvfb to allow for graphics-dependent tests
|
||||
|
@ -19,13 +22,11 @@ pipeline {
|
|||
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/*'
|
||||
|
|
Loading…
Reference in a new issue