1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-10-31 21:00:51 +01:00
MLEM/Jenkinsfile

32 lines
780 B
Text
Raw Normal View History

2020-02-17 17:24:13 +01:00
pipeline {
agent any
stages {
2020-05-21 22:50:38 +02:00
stage('Cake Build') {
2020-02-17 17:24:13 +01:00
steps {
2020-12-30 19:04:02 +01:00
sh 'dotnet tool restore'
2021-04-02 17:12:27 +02:00
// we use xvfb to allow for graphics-dependent tests
sh 'xvfb-run -a dotnet dotnet-cake --Target=Publish --Branch=' + env.BRANCH_NAME
2021-03-18 17:28:08 +01:00
}
}
2020-05-21 22:50:38 +02:00
stage('Document') {
when {
branch 'release'
2020-03-05 00:41:29 +01:00
}
2020-02-21 13:41:33 +01:00
steps {
2021-03-18 17:28:08 +01:00
sh 'dotnet dotnet-cake --Target=Document'
sh 'cp Docs/_site/** /var/www/MLEM/ -r'
}
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')
NUGET = credentials('e1bf7f6c-6047-4f7e-b639-15240a8f8351')
2020-02-26 10:26:22 +01:00
}
2020-03-05 00:41:29 +01:00
}