From feb669b51482e918781bc8abc93d61ec59acda7e Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 6 Sep 2019 12:21:36 +0200 Subject: [PATCH] Inizio test deploy su nexus... --- Jenkinsfile | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6efa0632..76b2e6b9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=1215']) { + withEnv(['NEXT_BUILD_NUMBER=1216']) { // env.versionNumber = VersionNumber(versionNumberString : '6.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '6.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'MAPO' @@ -244,6 +244,27 @@ 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}\\ " + + + script { + if (env.BRANCH_NAME != "UnitTesting") { + nexusArtifactUploader( + nexusVersion: 'nexus3', + protocol: 'https', + nexusUrl: 'nexus.steamware.net', + //groupId: 'SOUR', + version: "${env.versionNumber}", + repository: 'SWS', + credentialsId: 'bc9d8e92-4302-3266-817f-7b58501d12d5', + artifacts: [ + [artifactId: "${packName}", + classifier: "${env.classifier}", + file: prjPath + "\\ReleaseClienti\\${env.BRANCH_NAME}\\*.zip", + type: 'zip'] + ] + ) + } + } } @NonCPS // Funzione x recupero changeLog