cambio file versione + update jenkinsfile x build...
This commit is contained in:
Vendored
+32
-32
@@ -30,33 +30,33 @@ pipeline {
|
||||
bat "e:\\fart.exe ${WORKSPACE}\\VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0"
|
||||
}
|
||||
}
|
||||
// stage('Build') {
|
||||
// agent any
|
||||
// steps {
|
||||
// script {
|
||||
// /* compilo tutti i progetti compresi... */
|
||||
// if (env.BRANCH_NAME == "develop") {
|
||||
// /* CAMBIO numero versione in file sorgente!!! */
|
||||
// bat "e:\\fart.exe ${WORKSPACE}\\VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0"
|
||||
// bat "e:\\nuget.exe restore ${WORKSPACE}\\SHERPA.sln"
|
||||
// parallel (
|
||||
// REL: {
|
||||
// sleep 0
|
||||
// bat "\"${tool 'MSBuild-14.0'}\" SHERPA/SHERPA.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...'
|
||||
// }
|
||||
// }
|
||||
stage('Build') {
|
||||
agent any
|
||||
steps {
|
||||
script {
|
||||
/* compilo tutti i progetti compresi... */
|
||||
if (env.BRANCH_NAME == "develop") {
|
||||
/* CAMBIO numero versione in file sorgente!!! */
|
||||
bat "e:\\fart.exe ${WORKSPACE}\\VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0"
|
||||
bat "e:\\nuget.exe restore ${WORKSPACE}\\CMS-SC.sln"
|
||||
parallel (
|
||||
REL: {
|
||||
sleep 0
|
||||
bat "\"${tool 'MSBuild-14.0'}\" CMS-SC/CMS-SC.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...'
|
||||
}
|
||||
}
|
||||
// stage('Deploy') {
|
||||
// agent any
|
||||
// steps {
|
||||
@@ -65,13 +65,13 @@ pipeline {
|
||||
// if (env.BRANCH_NAME == "master") {
|
||||
// /* CAMBIO numero versione in file sorgente!!! */
|
||||
// bat "e:\\fart.exe ${WORKSPACE}\\VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0"
|
||||
// bat "e:\\nuget.exe restore ${WORKSPACE}\\SHERPA.sln"
|
||||
// bat "e:\\nuget.exe restore ${WORKSPACE}\\CMS-SC.sln"
|
||||
// parallel (
|
||||
// IIS01: {
|
||||
// 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=IIS01.pubxml /p:VisualStudioVersion=14.0 /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ SHERPA/SHERPA.csproj"
|
||||
// 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=IIS01.pubxml /p:VisualStudioVersion=14.0 /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ CMS-SC/CMS-SC.csproj"
|
||||
// },
|
||||
// IIS02: {
|
||||
// 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/ SHERPA/SHERPA.csproj"
|
||||
// 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/ CMS-SC/CMS-SC.csproj"
|
||||
// },
|
||||
// failFast: false)
|
||||
// }
|
||||
@@ -89,11 +89,11 @@ pipeline {
|
||||
// if (env.BRANCH_NAME == "cusbg") {
|
||||
// /* CAMBIO numero versione in file sorgente!!! */
|
||||
// bat "e:\\fart.exe ${WORKSPACE}\\VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0"
|
||||
// bat "e:\\nuget.exe restore ${WORKSPACE}\\SHERPA.sln"
|
||||
// bat "e:\\nuget.exe restore ${WORKSPACE}\\CMS-SC.sln"
|
||||
// parallel (
|
||||
// SP: {
|
||||
// sleep 0
|
||||
// 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=CUSBG.pubxml /p:VisualStudioVersion=14.0 /p:RunCodeAnalysis=false /p:Configuration=CUSBG /p:username=WPROD01\\Steamware /p:Password=viaD@nte16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ SHERPA/SHERPA.csproj"
|
||||
// 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=CUSBG.pubxml /p:VisualStudioVersion=14.0 /p:RunCodeAnalysis=false /p:Configuration=CUSBG /p:username=WPROD01\\Steamware /p:Password=viaD@nte16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ CMS-SC/CMS-SC.csproj"
|
||||
// },
|
||||
// failFast: false)
|
||||
// }
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// This code was generated by a tool. Any changes made manually will be lost
|
||||
// the next time this code is regenerated.
|
||||
//
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("2.1.139.378")]
|
||||
[assembly: AssemblyFileVersion("2.1.139.378")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2009-2016")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
@@ -1,19 +0,0 @@
|
||||
<#@ template language="C#" #>
|
||||
//
|
||||
// This code was generated by a tool. Any changes made manually will be lost
|
||||
// the next time this code is regenerated.
|
||||
//
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("2.1.139.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("2.1.139.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2009-<#= DateTime.Now.Year #>")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
<#+
|
||||
// int Major = 2;
|
||||
// int Minor = 4;
|
||||
// int Build = 602;
|
||||
// int RevisionNumber = (int)(DateTime.Now - DateTime.Today).TotalSeconds;
|
||||
int RevisionNumber = (int)(DateTime.UtcNow - new DateTime(2009,1,1)).TotalDays/7;
|
||||
#>
|
||||
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// This code was generated by a tool. Any changes made manually will be lost
|
||||
// the next time this code is regenerated.
|
||||
//
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("2.1.000.000")]
|
||||
[assembly: AssemblyFileVersion("2.1.000.000")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2007-2018")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
@@ -0,0 +1,12 @@
|
||||
<#@ template language="C#" #>
|
||||
//
|
||||
// This code was generated by a tool. Any changes made manually will be lost
|
||||
// the next time this code is regenerated.
|
||||
//
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("2.1.000.000")]
|
||||
[assembly: AssemblyFileVersion("2.1.000.000")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2009-<#= DateTime.Now.Year #>")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
Reference in New Issue
Block a user