diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..97dab52 --- /dev/null +++ b/Jenkinsfile @@ -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') + } +} \ No newline at end of file diff --git a/Test/Bundle.bat b/Test/Bundle.bat index 2b52fb1..747e1f5 100644 --- a/Test/Bundle.bat +++ b/Test/Bundle.bat @@ -1 +1 @@ -"../GameBundle/bin/Debug/netcoreapp3.1/GameBundle.exe" -s Test.csproj -o bin -v \ No newline at end of file +"../GameBundle/bin/Debug/netcoreapp3.1/GameBundle.exe" -s Test.csproj -o bin/Bundled -v \ No newline at end of file