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
47
Jenkinsfile
vendored
47
Jenkinsfile
vendored
|
@ -1,31 +1,32 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent none
|
||||||
stages {
|
stages {
|
||||||
stage('Submodules') {
|
stage('Cake') {
|
||||||
steps {
|
agent any
|
||||||
sh 'git submodule update --init --recursive --force'
|
stages {
|
||||||
}
|
stage('Submodules') {
|
||||||
}
|
steps {
|
||||||
stage('Cake Build') {
|
sh 'git submodule update --init --recursive --force'
|
||||||
steps {
|
}
|
||||||
sh 'dotnet tool restore'
|
}
|
||||||
// we use xvfb to allow for graphics-dependent tests
|
stage('Build') {
|
||||||
sh 'xvfb-run -a dotnet cake --target Publish --branch ' + env.BRANCH_NAME
|
steps {
|
||||||
}
|
sh 'dotnet tool restore'
|
||||||
}
|
// we use xvfb to allow for graphics-dependent tests
|
||||||
stage('Document') {
|
sh 'xvfb-run -a dotnet cake --target Publish --branch ' + env.BRANCH_NAME
|
||||||
steps {
|
}
|
||||||
sh 'dotnet cake --target Document --branch ' + env.BRANCH_NAME
|
}
|
||||||
stash includes: 'Docs/_site/**', name: 'site'
|
stage('Document') {
|
||||||
|
steps {
|
||||||
|
sh 'dotnet cake --target Document --branch ' + env.BRANCH_NAME
|
||||||
|
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/*'
|
||||||
|
|
Loading…
Reference in a new issue