syntax check

This commit is contained in:
Samuele E. Locatelli
2019-09-06 18:56:46 +02:00
parent 8d4ca33861
commit 34dbd92ddc
Vendored
+34 -39
View File
@@ -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