Aggiunto task build in jenkinsfile...
This commit is contained in:
Vendored
+29
-45
@@ -37,51 +37,35 @@ pipeline {
|
||||
bat "e:\\nuget.exe restore ${WORKSPACE}\\SOSCONDOMINI.sln"
|
||||
}
|
||||
}
|
||||
// stage('Build') {
|
||||
// agent any
|
||||
// steps {
|
||||
// script {
|
||||
// properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '180', artifactNumToKeepStr: '30', daysToKeepStr: '360', numToKeepStr: '30')), pipelineTriggers([])])
|
||||
// // CAMBIO numero versione + checkout NuGet in file sorgente!!!
|
||||
// bat "fart.exe VersGen\\MoonPro.cs 1.0.0.0 ${env.versionNumber} || EXIT /B 0"
|
||||
// bat "e:\\nuget.exe restore ${WORKSPACE}\\MAPO.sln"
|
||||
// }
|
||||
// script {
|
||||
// /* compilo installers in base al BRANCH del cliente... */
|
||||
// if (env.BRANCH_NAME == "develop") {
|
||||
// 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-TAB/MP-TAB.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
// },
|
||||
// failFast: false)
|
||||
// }
|
||||
// else {
|
||||
// echo 'Niente x Build (limitata a develop)...'
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
stage('Build') {
|
||||
agent any
|
||||
steps {
|
||||
script {
|
||||
properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '180', artifactNumToKeepStr: '30', daysToKeepStr: '360', numToKeepStr: '30')), pipelineTriggers([])])
|
||||
// CAMBIO numero versione + checkout NuGet in file sorgente!!!
|
||||
bat "e:\\fart.exe VersGen\\MoonPro.cs 1.0.0.0 ${env.versionNumber} || EXIT /B 0"
|
||||
bat "e:\\nuget.exe restore ${WORKSPACE}\\SOSCONDOMINI.sln"
|
||||
}
|
||||
script {
|
||||
/* compilo installers in base al BRANCH del cliente... */
|
||||
if (env.BRANCH_NAME == "develop") {
|
||||
parallel (
|
||||
ADM: {
|
||||
sleep 5
|
||||
bat "\"${tool 'MSBuild-14.0'}\" ADM/ADM.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
},
|
||||
PUB: {
|
||||
sleep 0
|
||||
bat "\"${tool 'MSBuild-14.0'}\" PUB/PUB.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
},
|
||||
failFast: false)
|
||||
}
|
||||
else {
|
||||
echo 'Niente x Build (limitata a develop)...'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// stage('Deploy') {
|
||||
// agent any
|
||||
// steps {
|
||||
|
||||
Reference in New Issue
Block a user