Coroutine/Jenkinsfile

28 lines
560 B
Text
Raw Normal View History

2020-02-28 22:30:42 +01:00
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'dotnet build **/Coroutine.csproj'
}
}
stage('Pack') {
steps {
sh 'find . -type f -name \\\'*.nupkg\\\' -delete'
sh 'dotnet pack **/Coroutine.csproj --version-suffix ${BUILD_NUMBER}'
}
}
stage('Publish') {
steps {
2020-02-28 22:33:12 +01:00
sh '''dotnet nuget push -s http://localhost:5000/v3/index.json **/*.nupkg -k $BAGET -n true
2020-02-28 22:30:42 +01:00
'''
}
}
}
environment {
2020-02-28 22:31:24 +01:00
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
2020-02-28 22:30:42 +01:00
}
}