1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-29 23:58:34 +01:00
MLEM/Jenkinsfile

34 lines
683 B
Text
Raw Normal View History

2020-02-17 17:24:13 +01:00
pipeline {
agent any
2020-02-21 15:04:26 +01:00
environment {
2020-02-21 15:09:33 +01:00
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
2020-02-21 15:04:26 +01:00
}
2020-02-17 17:24:13 +01:00
stages {
stage('Build Projects') {
steps {
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 {
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
dotnet nuget push -s http://localhost:5000/v3/index.json $i -k $BAGET -n true
2020-02-21 13:41:33 +01:00
done'''
}
}
2020-02-17 17:24:13 +01:00
}
}