mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-04 22:49:08 +01:00
37 lines
729 B
Groovy
37 lines
729 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') {
|
|
when {
|
|
branch 'master'
|
|
}
|
|
steps {
|
|
sh '''for i in **/*.nupkg; do
|
|
dotnet nuget push -s http://localhost:5000/v3/index.json $i -k $BAGET -n true
|
|
done'''
|
|
}
|
|
}
|
|
|
|
}
|
|
environment {
|
|
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
|
|
}
|
|
}
|