Aggiunto stage build a jenkinsfile
This commit is contained in:
Vendored
+23
-43
@@ -12,8 +12,8 @@ pipeline {
|
||||
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
|
||||
script {
|
||||
withEnv(['NEXT_BUILD_NUMBER=50']) {
|
||||
// env.versionNumber = VersionNumber(versionNumberString : '${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
|
||||
env.versionNumber = VersionNumber(versionNumberString : '${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
|
||||
env.versionNumber = VersionNumber(versionNumberString : '${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
|
||||
// env.versionNumber = VersionNumber(versionNumberString : '${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
|
||||
env.APP_NAME = 'MAPO-IOB-WIN'
|
||||
}
|
||||
}
|
||||
@@ -31,47 +31,27 @@ pipeline {
|
||||
bat "fart.exe VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0"
|
||||
}
|
||||
}
|
||||
// stage('Build') {
|
||||
// agent any
|
||||
// steps {
|
||||
// script {
|
||||
// /* compilo installers in base al BRANCH del cliente... */
|
||||
// if (env.BRANCH_NAME == "develop") {
|
||||
// /* CAMBIO numero versione in file sorgente!!! */
|
||||
// bat "fart.exe VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0"
|
||||
// parallel (
|
||||
// LANDING: {
|
||||
// sleep 5
|
||||
// bat "\"${tool 'MSBuild-14.0'}\" MP/MP.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
// },
|
||||
// ADMIN: {
|
||||
// sleep 0
|
||||
// bat "\"${tool 'MSBuild-14.0'}\" MP-Admin/MP-Admin.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
// },
|
||||
// IO: {
|
||||
// sleep 4
|
||||
// bat "\"${tool 'MSBuild-14.0'}\" MP-IO/MP-IO.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
// },
|
||||
// MON: {
|
||||
// sleep 3
|
||||
// bat "\"${tool 'MSBuild-14.0'}\" MP-MON/MP-MON.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
// },
|
||||
// SITE: {
|
||||
// sleep 1
|
||||
// bat "\"${tool 'MSBuild-14.0'}\" MP-Site/MP-Site.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
// },
|
||||
// TABLET: {
|
||||
// sleep 2
|
||||
// bat "\"${tool 'MSBuild-14.0'}\" MP-Tablet/MP-Tablet.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
// },
|
||||
// failFast: false)
|
||||
// }
|
||||
// else {
|
||||
// echo 'Nothing to Build...'
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
stage('Build') {
|
||||
agent any
|
||||
steps {
|
||||
script {
|
||||
/* compilo installers in base al BRANCH del cliente... */
|
||||
if (env.BRANCH_NAME == "develop") {
|
||||
/* CAMBIO numero versione in file sorgente!!! */
|
||||
bat "fart.exe VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0"
|
||||
parallel (
|
||||
MAPO-IOB-WIN: {
|
||||
sleep 0
|
||||
bat "\"${tool 'MSBuild-14.0'}\" IOB-WIN/IOB-WIN.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
},
|
||||
failFast: false)
|
||||
}
|
||||
else {
|
||||
echo 'Nothing to Build...'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
echo 'Testing.. 2 be done...'
|
||||
|
||||
Reference in New Issue
Block a user