mirror of
https://github.com/Ellpeck/GameBundle.git
synced 2024-10-31 23:50:51 +01:00
added jenkinsfile
This commit is contained in:
parent
b6096caf46
commit
3f92e7790e
2 changed files with 29 additions and 1 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 **/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')
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
Loading…
Reference in a new issue