test unstable?

This commit is contained in:
Samuele E. Locatelli
2019-10-10 14:27:51 +02:00
parent f1976c8425
commit b05dcf29d1
Vendored
+7 -1
View File
@@ -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") {