mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-25 09:49:23 +01:00
31 lines
No EOL
575 B
Groovy
31 lines
No EOL
575 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Build Projects') {
|
|
steps {
|
|
sh '''for i in **/MLEM*.csproj; do
|
|
dotnet build $i
|
|
done'''
|
|
sh 'dotnet build **/Demos.csproj'
|
|
}
|
|
}
|
|
|
|
stage('Pack') {
|
|
steps {
|
|
sh 'find . -type f -name \'*.nupkg\' -delete'
|
|
sh '''for i in **/MLEM*.csproj; do
|
|
dotnet pack $i --version-suffix ${BUILD_NUMBER}
|
|
done'''
|
|
}
|
|
}
|
|
|
|
stage('Publish') {
|
|
steps {
|
|
sh '''for i in **/*.nupkg; do
|
|
nuget push $i -s https://nuget.ellpeck.de/v3/index.json
|
|
done'''
|
|
}
|
|
}
|
|
|
|
}
|
|
} |