tolti commenti, spostato esecuzione condizionale fart x fix verisone entro check branch, cambio branch x installers...

This commit is contained in:
Samuele E. Locatelli
2017-04-13 10:49:17 +02:00
parent 476b19a935
commit 88d35dd3da
Vendored
+12 -12
View File
@@ -1,8 +1,5 @@
pipeline {
agent none
/*options([pipelineTriggers([githubPush()])])*/
stages {
stage('Checkout') {
agent any
@@ -65,9 +62,9 @@ pipeline {
agent any
steps {
script {
/* CAMBIO numero versione in file sorgente!!! */
bat "fart.exe VersGen\\GPW.cs 999.0 ${env.versionNumber} || EXIT /B 0"
if (env.BRANCH_NAME == "master") {
/* CAMBIO numero versione in file sorgente!!! */
bat "fart.exe VersGen\\GPW.cs 999.0 ${env.versionNumber} || EXIT /B 0"
parallel (
ADMIN: {
bat "\"${tool 'MSBuild-14.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:VisualStudioVersion=14.0 /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ GPW_Smart/GPW_Smart.csproj"
@@ -101,7 +98,10 @@ pipeline {
stage('Approvazione') {
steps {
milestone 1
input "Generare gli installers per ${env.APP_NAME}?"
script {
if (env.BRANCH_NAME == "master") {
input "Generare gli installers per ${env.APP_NAME}?"
}
milestone 2
}
}
@@ -109,10 +109,10 @@ pipeline {
agent any
steps {
script {
/* CAMBIO numero versione in file sorgente!!! */
bat "fart.exe VersGen\\GPW.cs 999.0 ${env.versionNumber} || EXIT /B 0"
/* master / develop */
if (env.BRANCH_NAME == "develop") {
if (env.BRANCH_NAME == "master") {
/* CAMBIO numero versione in file sorgente!!! */
bat "fart.exe VersGen\\GPW.cs 999.0 ${env.versionNumber} || EXIT /B 0"
parallel (
HOME: {
/* SPS */
@@ -187,8 +187,8 @@ pipeline {
unstable {
mail to:"samuele@steamware.net", subject:"UNSTABLE: ${currentBuild.fullDisplayName}", body: "Build is unstable."
}
/*changed {
mail to:"samuele@steamware.net", subject:"CHANGED: ${currentBuild.fullDisplayName}", body: "Wow, our status changed!"
}*/
changed {
mail to:"samuele@steamware.net", subject:"CHANGED: ${currentBuild.fullDisplayName}", body: "Build status changed!"
}
}
}