Inizio test deploy su nexus...

This commit is contained in:
Samuele E. Locatelli
2019-09-06 12:21:36 +02:00
parent cbdfdf29ce
commit feb669b514
Vendored
+22 -1
View File
@@ -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