From 702bb46213b15ddca6b94d80a91a7206b70aa71f Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 24 Dec 2019 17:27:16 +0100 Subject: [PATCH] =?UTF-8?q?Rimesso=20nexus=20(sper=C3=B2m!)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f30c16b5..7a1a880b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=624']) { + withEnv(['NEXT_BUILD_NUMBER=625']) { // env.versionNumber = VersionNumber(versionNumberString : '3.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '3.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'MAPO-IOB-WIN' @@ -103,21 +103,22 @@ pipeline { // Compressione in .zip dell'installer... bat "e:\\7za.exe a -tzip ${WORKSPACE}\\Releases\\${env.BRANCH_NAME}\\IOB-MAN.zip ${WORKSPACE}\\IOB-MAN\\bin\\*" // ora mi occupo delle operazioni di invio a NEXUS... - // nexusArtifactUploader( - // nexusVersion: 'nexus3', - // protocol: 'http', - // nexusUrl: 'http://nexus.steamware.net/', - // //groupId: 'IOB-MAN', - // version: "${env.versionNumber}", - // repository: 'utility', - // credentialsId: 'fe387daa-d07c-3207-877e-96c8be1be91b', - // artifacts: [ - // [artifactId: 'IOB-MAN', - // classifier: "${env.classifier}", - // file: "Releases\\${env.BRANCH_NAME}\\IOB-MAN.zip", - // type: 'zip'] - // ] - // ) + nexusArtifactUploader( + nexusVersion: 'nexus3', + protocol: 'http', + nexusUrl: 'nexus.steamware.net', + //groupId: 'IOB-MAN', + version: "${env.versionNumber}", + repository: 'utility', + // repository: 'SWS', + credentialsId: 'bc9d8e92-4302-3266-817f-7b58501d12d5', + artifacts: [ + [artifactId: 'IOB-MAN', + classifier: "${env.classifier}", + file: "Releases\\${env.BRANCH_NAME}\\IOB-MAN.zip", + type: 'zip'] + ] + ) } // procedo solo se NON si tratta di commit in ramo DOCUMentazione... else if (env.BRANCH_NAME != "docum") {