2020-02-17 17:24:13 +01:00
|
|
|
pipeline {
|
2023-04-15 17:19:26 +02:00
|
|
|
agent none
|
2020-02-17 17:24:13 +01:00
|
|
|
stages {
|
2023-04-15 17:19:26 +02:00
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
2021-11-07 02:55:00 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Publish Docs') {
|
2023-04-15 17:19:26 +02:00
|
|
|
agent { label 'web' }
|
|
|
|
when { branch 'release' }
|
2020-02-21 13:41:33 +01:00
|
|
|
steps {
|
2023-04-12 22:19:57 +02:00
|
|
|
unstash 'site'
|
2021-11-26 19:45:59 +01:00
|
|
|
sh 'rm -rf /var/www/MLEM/*'
|
2021-11-07 02:55:00 +01:00
|
|
|
sh 'cp Docs/_site/** /var/www/MLEM/ -r'
|
2020-05-21 01:57:28 +02:00
|
|
|
}
|
2020-02-21 13:41:33 +01:00
|
|
|
}
|
2020-02-17 17:24:13 +01:00
|
|
|
}
|
2021-03-20 21:37:43 +01:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
nunit testResultsPattern: '**/TestResults.xml'
|
|
|
|
cobertura coberturaReportFile: '**/coverage.cobertura.xml'
|
|
|
|
}
|
|
|
|
}
|
2020-02-26 10:26:22 +01:00
|
|
|
environment {
|
|
|
|
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
|
2020-04-11 03:21:55 +02:00
|
|
|
NUGET = credentials('e1bf7f6c-6047-4f7e-b639-15240a8f8351')
|
2020-02-26 10:26:22 +01:00
|
|
|
}
|
2020-03-05 00:41:29 +01:00
|
|
|
}
|