added jenkinsfile

This commit is contained in:
Ellpeck 2020-04-09 18:37:12 +02:00
parent b6096caf46
commit 3f92e7790e
2 changed files with 29 additions and 1 deletions

28
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,28 @@
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')
}
}

View file

@ -1 +1 @@
"../GameBundle/bin/Debug/netcoreapp3.1/GameBundle.exe" -s Test.csproj -o bin -v
"../GameBundle/bin/Debug/netcoreapp3.1/GameBundle.exe" -s Test.csproj -o bin/Bundled -v