From 34dbd92ddca970297947901e2ca6006d6a18da5f Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 6 Sep 2019 18:56:46 +0200 Subject: [PATCH] syntax check --- Jenkinsfile | 73 +++++++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 39 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a6c091c2..85cca4d6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -208,33 +208,49 @@ pipeline { } script { // calcolo il config... - if (env.BRANCH_NAME == "develop") { + if (env.BRANCH_NAME.contains("beta")) { env.config = "Debug" env.classifier = "unstable" } - else if (env.BRANCH_NAME == "master") { + else if (env.BRANCH_NAME == "stable") { env.config = "Release" env.classifier = "" } if (env.BRANCH_NAME == "stable" || env.BRANCH_NAME.contains("beta") ) { - nexusArtifactUploader( - nexusVersion: 'nexus3', - protocol: 'http', - nexusUrl: 'nexus.steamware.net', - //groupId: 'SOUR', - version: "${env.versionNumber}", - repository: 'SWS', + // nexusArtifactUploader( + // credentialsId: 'bc9d8e92-4302-3266-817f-7b58501d12d5', + // //groupId: 'SOUR', + // nexusUrl: 'nexus.steamware.net', + // nexusVersion: 'nexus3', + // protocol: 'http', + // repository: 'SWS', + // version: "${env.versionNumber}", + // artifacts: [ + // [artifactId: "MP-LAND", + // classifier: "${env.classifier}", + // file: "MP-LAND\\ReleaseClienti\\${env.BRANCH_NAME}\\LAND.zip ", + // type: 'zip'] + // // ,[artifactId: "MP-IO", + // // classifier: "${env.classifier}", + // // file: "MP-IO\\ReleaseClienti\\${env.BRANCH_NAME}\\IO.zip ", + // // type: 'zip'] + // ] + // ) + + + nexusArtifactUploader ( credentialsId: 'bc9d8e92-4302-3266-817f-7b58501d12d5', + groupId: 'MP', + nexusUrl: 'nexus.steamware.net', + nexusVersion: 'nexus3', + protocol: 'http', + repository: 'SWS', + version: '0.0.1', artifacts: [ - [artifactId: "MP-LAND", - classifier: "${env.classifier}", - file: "MP-LAND\\ReleaseClienti\\${env.BRANCH_NAME}\\LAND.zip ", - type: 'zip'] - // ,[artifactId: "MP-IO", - // classifier: "${env.classifier}", - // file: "MP-IO\\ReleaseClienti\\${env.BRANCH_NAME}\\IO.zip ", - // type: 'zip'] - ] + [artifactId: "MP-LAND", + classifier: "${env.classifier}", + file: "MP-LAND\\ReleaseClienti\\${env.BRANCH_NAME}\\LAND.zip ", + type: 'zip'] ) } } @@ -276,27 +292,6 @@ def publishToDeployServer(prjPath, iisPath, packName) { bat "xcopy /y " + prjPath + "\\ReleaseClienti\\${env.BRANCH_NAME}\\* E:\\Staging\\byProd\\MP\\${env.BRANCH_NAME}\\" + packName + "\\${env.versionNumber}\\ " // copio x AutoUpdate deploy bat "xcopy /y " + prjPath + "\\ReleaseClienti\\${env.BRANCH_NAME}\\" + packName + ".zip " + iisPath + packName + "\\${env.BRANCH_NAME}\\ " - - // // pubblico su nexus.steawmare.net - // script { - // if (env.BRANCH_NAME != "UnitTesting") { - // nexusArtifactUploader( - // nexusVersion: 'nexus3', - // protocol: 'http', - // nexusUrl: 'nexus.steamware.net', - // //groupId: 'SOUR', - // version: "${env.versionNumber}", - // repository: 'utility', - // credentialsId: 'bc9d8e92-4302-3266-817f-7b58501d12d5', - // artifacts: [ - // [artifactId: "${packName}", - // classifier: "${env.classifier}", - // file: prjPath + "\\ReleaseClienti\\${env.BRANCH_NAME}\\" + packName + ".zip ", - // type: 'zip'] - // ] - // ) - // } - // } } @NonCPS // Funzione x recupero changeLog