diff --git a/Jenkinsfile b/Jenkinsfile index ffe3107..da12c66 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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) // } diff --git a/VersGen/CMS_SC.cs b/VersGen/CMS_SC.cs deleted file mode 100644 index 5253ca5..0000000 --- a/VersGen/CMS_SC.cs +++ /dev/null @@ -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")] diff --git a/VersGen/CMS_SC.tt b/VersGen/CMS_SC.tt deleted file mode 100644 index b1d4764..0000000 --- a/VersGen/CMS_SC.tt +++ /dev/null @@ -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; -#> \ No newline at end of file diff --git a/VersGen/VersGen.cs b/VersGen/VersGen.cs new file mode 100644 index 0000000..b0cac47 --- /dev/null +++ b/VersGen/VersGen.cs @@ -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")] \ No newline at end of file diff --git a/VersGen/VersGen.tt b/VersGen/VersGen.tt new file mode 100644 index 0000000..ee3297f --- /dev/null +++ b/VersGen/VersGen.tt @@ -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")] \ No newline at end of file