diff --git a/Jenkinsfile b/Jenkinsfile index 5904c32..85f0bbd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -53,16 +53,14 @@ pipeline { // calcolo il config... if (env.BRANCH_NAME == "develop") { env.config = "Debug" - env.currVers=env.versionNumberBeta } else if (env.BRANCH_NAME == "master") { env.config = "Release" - env.currVers=env.versionNumber } // 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.currVers} || EXIT /B 0" + bat "e:\\fart.exe SteamWareLib\\SteamWare.cs 1.0.0.0 ${env.versionNumber} || EXIT /B 0" bat "e:\\nuget.exe restore ${WORKSPACE}\\SteamWare.sln" // elimino vecchie build... bat "del /f /q *.nupkg" @@ -79,10 +77,12 @@ pipeline { // ora mi occupo delle operazioni di invio a NEXUS... script { if (env.BRANCH_NAME == "develop") { + // sposto file... + bat "cp SteamWare.${env.versionNumber}.nupkg SteamWare.${env.versionNumberBeta}.nupkg" // 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" - bat "e:\\nuget.exe push SteamWare.${env.currVers}-beta.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted" + bat "e:\\nuget.exe push SteamWare.${env.versionNumberBeta}.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted" } else if (env.BRANCH_NAME == "master") { // lancio upload con nuget!