Cambio step compilazione jenkinsfile
This commit is contained in:
Vendored
+21
-22
@@ -7,16 +7,9 @@ pipeline {
|
||||
stage('Checkout') {
|
||||
agent any
|
||||
steps {
|
||||
/* build delle SteamWare libs! */
|
||||
/*build 'SteamWare/SteamWareLib'*/
|
||||
/* copio le libs...*/
|
||||
// step([$class: 'CopyArtifact', fingerprintArtifacts: true, projectName: 'Steamware/SteamWareLib', selector: [$class: 'WorkspaceSelector'], target: '../Steamware/SteamWareLib'])
|
||||
// mirroring directory x SteamWare Libs
|
||||
//bat "robocopy /MIR ..\\..\\SteamWare\\SteamWareLib ..\\SteamWare\\SteamWareLib || EXIT /B 0"
|
||||
|
||||
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
|
||||
script {
|
||||
withEnv(['NEXT_BUILD_NUMBER=653']) {
|
||||
withEnv(['NEXT_BUILD_NUMBER=654']) {
|
||||
// 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'
|
||||
@@ -39,26 +32,32 @@ pipeline {
|
||||
stage('Build') {
|
||||
agent any
|
||||
steps {
|
||||
// fix vers numb + pacchetti nuget
|
||||
script {
|
||||
// compilo installers in base al BRANCH ...
|
||||
if(env.BRANCH_NAME == "IobMan") {
|
||||
// CAMBIO numero versione in file sorgente!!!
|
||||
// CAMBIO numero versione in file sorgente!!!
|
||||
bat "e:\\fart.exe VersGen\\VersGen.cs 1.0.0.0 ${env.versionNumber} || EXIT /B 0"
|
||||
// checkout NuGet in file sorgente!!!
|
||||
fixNuget("${WORKSPACE}\\IOB-WIN.sln")
|
||||
// BUILD!
|
||||
bat "\"${tool 'MSBuild-16.0'}\" IOB-MAN/IOB-MAN.csproj -target:Build /p:Configuration=Release /p:Platform=\"x86\" /p:OutputPath=bin/ /m"
|
||||
}
|
||||
else if (env.BRANCH_NAME == "develop") {
|
||||
// CAMBIO numero versione in file sorgente!!!
|
||||
bat "e:\\fart.exe VersGen\\VersGen.cs 1.0.0.0 ${env.versionNumber} || EXIT /B 0"
|
||||
// checkout NuGet in file sorgente!!!
|
||||
fixNuget("${WORKSPACE}\\IOB-WIN.sln")
|
||||
// BUILD!
|
||||
bat "\"${tool 'MSBuild-14.0'}\" IOB-WIN/IOB-WIN.csproj -target:Build /p:Configuration=Release /p:Platform=\"x86\" /p:OutputPath=bin/ /m"
|
||||
}
|
||||
script {
|
||||
if (env.BRANCH_NAME == "develop") {
|
||||
parallel (
|
||||
IOB-WIN: {
|
||||
// // CAMBIO numero versione in file sorgente!!!
|
||||
// bat "e:\\fart.exe VersGen\\VersGen.cs 1.0.0.0 ${env.versionNumber} || EXIT /B 0"
|
||||
// // checkout NuGet in file sorgente!!!
|
||||
// fixNuget("${WORKSPACE}\\IOB-WIN.sln")
|
||||
// BUILD!
|
||||
bat "\"${tool 'MSBuild-16.0'}\" IOB-WIN/IOB-WIN.csproj -target:Build /p:Configuration=Release /p:Platform=\"x86\" /p:OutputPath=bin/ /m"
|
||||
},
|
||||
IOB-MAN: {
|
||||
// BUILD!
|
||||
bat "\"${tool 'MSBuild-16.0'}\" IOB-MAN/IOB-MAN.csproj -target:Build /p:Configuration=Release /p:Platform=\"x86\" /p:OutputPath=bin/ /m"
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo 'NON faccio test di Build se non per BRANCH DEVELOP...'
|
||||
echo 'NON faccio test di Build se non per BRANCH develop'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -92,7 +91,7 @@ pipeline {
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Nessun Deploy x documentazione'
|
||||
echo 'Nessun Deploy necessario'
|
||||
}
|
||||
}
|
||||
// ora mi occupo delle operazioni di compressione e copia...
|
||||
|
||||
Reference in New Issue
Block a user