mirror of
https://github.com/Ellpeck/Coroutine.git
synced 2024-12-22 09:09:23 +01:00
added ci + nuget server
This commit is contained in:
parent
d6ad4e1f2c
commit
a89fbd6a71
1 changed files with 28 additions and 0 deletions
28
Jenkinsfile
vendored
Normal file
28
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
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 {
|
||||
sh '''dotnet nuget push -s http://localhost:5000/v3/index.json $i -k $BAGET -n true
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
environment {
|
||||
BAGET = 'credentials(\'3db850d0-e6b5-43d5-b607-d180f4eab676\')'
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue