invio solo 1 artifact... "online"...
This commit is contained in:
Vendored
+57
-22
@@ -18,7 +18,7 @@ pipeline {
|
||||
|
||||
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
|
||||
script {
|
||||
withEnv(['NEXT_BUILD_NUMBER=1218']) {
|
||||
withEnv(['NEXT_BUILD_NUMBER=1219']) {
|
||||
// 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'
|
||||
@@ -182,6 +182,23 @@ pipeline {
|
||||
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /T:Package /P:Configuration=Prod /p:PublishProfile=${env.BRANCH_NAME}.pubxml /p:VisualStudioVersion=14.0 /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/${env.BRANCH_NAME}/LAND.zip /p:DeployIisAppPath=\"Default Web Site/MP/LAND\" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-LAND/MP-LAND.csproj"
|
||||
// pubblico su server deploy!
|
||||
publishToDeployServer("MP-LAND\\", "c:\\inetpub\\wwwroot\\SWS\\MAPO\\", "LAND")
|
||||
|
||||
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 + "MP-LAND\\ReleaseClienti\\${env.BRANCH_NAME}\\LAND.zip ",
|
||||
type: 'zip']
|
||||
]
|
||||
)
|
||||
|
||||
// MON
|
||||
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /T:Package /P:Configuration=Prod /p:PublishProfile=${env.BRANCH_NAME}.pubxml /p:VisualStudioVersion=14.0 /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/${env.BRANCH_NAME}/MON.zip /p:DeployIisAppPath=\"Default Web Site/MP/MON\" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-MON/MP-MON.csproj"
|
||||
// pubblico su server deploy!
|
||||
@@ -206,6 +223,25 @@ pipeline {
|
||||
echo 'Questo BRANCH non necessita di installer...'
|
||||
}
|
||||
}
|
||||
// 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 + "MP-LAND\\ReleaseClienti\\${env.BRANCH_NAME}\\LAND.zip ",
|
||||
// type: 'zip']
|
||||
// ]
|
||||
// )
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -245,27 +281,26 @@ def publishToDeployServer(prjPath, iisPath, packName) {
|
||||
// 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: 'SWS',
|
||||
// credentialsId: 'bc9d8e92-4302-3266-817f-7b58501d12d5',
|
||||
credentialsId: 'fe387daa-d07c-3207-877e-96c8be1be91b',
|
||||
artifacts: [
|
||||
[artifactId: "${packName}",
|
||||
classifier: "${env.classifier}",
|
||||
file: prjPath + "\\ReleaseClienti\\${env.BRANCH_NAME}\\" + packName + ".zip ",
|
||||
type: 'zip']
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
// // 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
|
||||
|
||||
Reference in New Issue
Block a user