2020-02-17 17:24:13 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('Build Projects') {
|
|
|
|
steps {
|
2020-02-17 17:29:42 +01:00
|
|
|
sh '''for i in **/MLEM*.csproj; do
|
|
|
|
dotnet build $i
|
|
|
|
done'''
|
2020-02-17 17:24:13 +01:00
|
|
|
sh 'dotnet build **/Demos.csproj'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-21 13:41:33 +01:00
|
|
|
stage('Pack') {
|
|
|
|
steps {
|
2020-02-21 13:50:41 +01:00
|
|
|
sh 'find . -type f -name \'*.nupkg\' -delete'
|
2020-02-21 13:41:33 +01:00
|
|
|
sh '''for i in **/MLEM*.csproj; do
|
|
|
|
dotnet pack $i --version-suffix ${BUILD_NUMBER}
|
|
|
|
done'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Publish') {
|
|
|
|
steps {
|
|
|
|
sh '''for i in **/*.nupkg; do
|
2020-02-21 13:51:39 +01:00
|
|
|
nuget push $i -Source https://nuget.ellpeck.de/v3/index.json
|
2020-02-21 13:41:33 +01:00
|
|
|
done'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-17 17:24:13 +01:00
|
|
|
}
|
|
|
|
}
|