ExtremelySimpleLogger/Jenkinsfile

31 lines
629 B
Plaintext
Raw Normal View History

2020-07-29 14:44:28 +02:00
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'dotnet build **/ExtremelySimpleLogger.csproj'
}
}
stage('Pack') {
steps {
sh 'find . -type f -name \\\'*.nupkg\\\' -delete'
sh 'dotnet pack **/ExtremelySimpleLogger.csproj --version-suffix ${BUILD_NUMBER}'
}
}
stage('Publish') {
when {
2021-10-24 00:51:13 +02:00
branch 'main'
2020-07-29 14:44:28 +02:00
}
steps {
sh '''dotnet nuget push -s http://localhost:5000/v3/index.json **/*.nupkg -k $BAGET -n true
'''
}
}
}
environment {
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
}
}