From b05dcf29d1cade6b6d1fa01b57d60f8c6b50f7bb Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 10 Oct 2019 14:27:51 +0200 Subject: [PATCH] test unstable? --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8880488..c80bcfa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -52,15 +52,19 @@ pipeline { // calcolo il config... if (env.BRANCH_NAME == "develop") { env.config = "Debug" + env.classifier = "-beta" } else if (env.BRANCH_NAME == "master") { env.config = "Release" + env.classifier = "" } // procedo solo se NON si tratta di commit in ramo UnitTesting... if (env.BRANCH_NAME != "UnitTesting") { // CAMBIO numero versione + checkout NuGet in file sorgente!!! - bat "e:\\fart.exe SteamWareLib\\SteamWare.cs 1.0.0.0 ${env.versionNumber} || EXIT /B 0" + bat "e:\\fart.exe SteamWareLib\\SteamWare.cs 1.0.0.0 ${env.versionNumber}${env.classifier} || EXIT /B 0" bat "e:\\nuget.exe restore ${WORKSPACE}\\SteamWare.sln" + // elimino vecchie build... + bat "rm -rdf *.nupkg" // BUILD! bat "\"${tool 'MSBuild-16.0'}\" SteamWareLib\\SteamWare.csproj -target:Build /p:Configuration=${env.config} /p:Platform=\"Any CPU\" /p:OutputPath=bin/${env.config} /m" // creo package NuGet... @@ -77,6 +81,8 @@ pipeline { // lancio upload con nuget! echo 'Start upload with nuget push' bat "e:\\nuget setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted" + // copio come beta... + bat "e:\\nuget.exe push SteamWare.${env.versionNumber}-beta.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted" } else if (env.BRANCH_NAME == "master") {