From 013d2499dedbf56ed3e36c23a0d393c6b5067809 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 31 Dec 2020 13:43:34 +0100 Subject: [PATCH] Fix gitSpread + install IIS01 single branch push --- Jenkinsfile | 14 +++++++------- gitSpread.bat | 1 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 76b3bbc2..af852502 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -165,13 +165,13 @@ pipeline { bat "e:\\nuget setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted" bat "e:\\nuget.exe push MapoSDK.${env.packVers}.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted" } - // else if (env.singleProj.contains(env.BRANCH_NAME) { - // parallel ( - // ALL: { - // bat "\"${tool 'MSBuild-16.0'}\" \"/p:m=8 /p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ MP-${env.BRANCH_NAME}/MP-${env.BRANCH_NAME}.csproj" - // }, - // failFast: false) - // } + else if ( env.singleProj.contains(env.BRANCH_NAME) ) { + parallel ( + ALL: { + bat "\"${tool 'MSBuild-16.0'}\" \"/p:m=8 /p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ MP-${env.BRANCH_NAME}/MP-${env.BRANCH_NAME}.csproj" + }, + failFast: false) + } else { echo 'Nothing to deploy...' } diff --git a/gitSpread.bat b/gitSpread.bat index 6b0a200f..0a60feb5 100644 --- a/gitSpread.bat +++ b/gitSpread.bat @@ -18,7 +18,6 @@ REM Faccio push remoto condizionale if %pushRemote% GTR 0 ( git push . %baseBranch%:ES3 ) if %pushRemote% GTR 0 ( git push . %baseBranch%:Giancarlo ) if %pushRemote% GTR 0 ( git push . %baseBranch%:MongoDb ) -REM if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:%baseBranch% ) if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:beta ) if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:develop )