mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 20:58:34 +01:00
30 lines
707 B
Groovy
30 lines
707 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Cake Build') {
|
|
steps {
|
|
sh 'dotnet tool restore'
|
|
sh 'dotnet dotnet-cake --Target=Publish --Branch=' + env.BRANCH_NAME
|
|
}
|
|
}
|
|
stage('Document') {
|
|
when {
|
|
branch 'release'
|
|
}
|
|
steps {
|
|
sh 'dotnet dotnet-cake --Target=Document'
|
|
sh 'cp Docs/_site/** /var/www/MLEM/ -r'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
nunit testResultsPattern: '**/TestResults.xml'
|
|
cobertura coberturaReportFile: '**/coverage.cobertura.xml'
|
|
}
|
|
}
|
|
environment {
|
|
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
|
|
NUGET = credentials('e1bf7f6c-6047-4f7e-b639-15240a8f8351')
|
|
}
|
|
}
|