mirror of
https://github.com/Ellpeck/GameBundle.git
synced 2024-12-23 12:19:23 +01:00
28 lines
562 B
Text
28 lines
562 B
Text
|
pipeline {
|
||
|
agent any
|
||
|
stages {
|
||
|
stage('Build') {
|
||
|
steps {
|
||
|
sh 'dotnet build **/GameBundle.csproj'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
stage('Pack') {
|
||
|
steps {
|
||
|
sh 'find . -type f -name \\\'*.nupkg\\\' -delete'
|
||
|
sh 'dotnet pack **/GameBundle.csproj --version-suffix ${BUILD_NUMBER}'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
stage('Publish') {
|
||
|
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')
|
||
|
}
|
||
|
}
|