Refresh JenkinsFile
This commit is contained in:
Vendored
+9
-19
@@ -11,7 +11,7 @@ pipeline {
|
||||
|
||||
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
|
||||
script {
|
||||
withEnv(['NEXT_BUILD_NUMBER=1120']) {
|
||||
withEnv(['NEXT_BUILD_NUMBER=100']) {
|
||||
// env.versionNumber = VersionNumber(versionNumberString : '${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
|
||||
env.versionNumber = VersionNumber(versionNumberString : '${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
|
||||
env.APP_NAME = 'ScheMe'
|
||||
@@ -42,7 +42,7 @@ pipeline {
|
||||
parallel (
|
||||
SP: {
|
||||
sleep 0
|
||||
bat "\"${tool 'MSBuild-14.0'}\" ScheMe-SP/ScheMe-SP.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
bat "\"${tool 'MSBuild-14.0'}\" ScheMe-PIC/ScheMe-PIC.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
},
|
||||
// AFA: {
|
||||
// sleep 1
|
||||
@@ -70,18 +70,12 @@ pipeline {
|
||||
/* CAMBIO numero versione in file sorgente!!! */
|
||||
bat "fart.exe VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0"
|
||||
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=IIS01.pubxml /p:VisualStudioVersion=14.0 /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ ScheMe-SP/ScheMe-SP.csproj"
|
||||
sleep 1
|
||||
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/ ScheMe-SP/ScheMe-SP.csproj"
|
||||
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/ ScheMe-PIC/ScheMe-PIC.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/ ScheMe-PIC/ScheMe-PIC.csproj"
|
||||
},
|
||||
// AFA: {
|
||||
// sleep 2
|
||||
// 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/ ScheMe-AFA/ScheMe-AFA.csproj"
|
||||
// sleep 3
|
||||
// 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/ ScheMe-AFA/ScheMe-AFA.csproj"
|
||||
// },
|
||||
failFast: false)
|
||||
}
|
||||
else {
|
||||
@@ -99,14 +93,10 @@ pipeline {
|
||||
/* CAMBIO numero versione in file sorgente!!! */
|
||||
bat "fart.exe VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0"
|
||||
parallel (
|
||||
SP: {
|
||||
PIC: {
|
||||
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/ ScheMe-SP/ScheMe-SP.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/ ScheMe-PIC/ScheMe-PIC.csproj"
|
||||
},
|
||||
// AFA: {
|
||||
// sleep 1
|
||||
// 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/ ScheMe-AFA/ScheMe-AFA.csproj"
|
||||
// },
|
||||
failFast: false)
|
||||
}
|
||||
else{
|
||||
|
||||
@@ -8,11 +8,11 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
<WebPublishMethod>MSDeploy</WebPublishMethod>
|
||||
<LastUsedBuildConfiguration>CUSBG</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<SiteUrlToLaunchAfterPublish>http://scheme.steamware.net/SP/CusBG</SiteUrlToLaunchAfterPublish>
|
||||
<SiteUrlToLaunchAfterPublish>http://scheme.steamware.net/PIC/CusBG</SiteUrlToLaunchAfterPublish>
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<ExcludeApp_Data>True</ExcludeApp_Data>
|
||||
<MSDeployServiceURL>https://wprod01.steamware.net:8172/MsDeploy.axd</MSDeployServiceURL>
|
||||
<DeployIisAppPath>scheme.steamware.net/SP/CusBG</DeployIisAppPath>
|
||||
<DeployIisAppPath>scheme.steamware.net/PIC/CusBG</DeployIisAppPath>
|
||||
<RemoteSitePhysicalPath />
|
||||
<SkipExtraFilesOnServer>False</SkipExtraFilesOnServer>
|
||||
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</connectionStrings>
|
||||
-->
|
||||
<appSettings>
|
||||
<add key="baseUrl" value="http://scheme.steamware.net/SP/CusBG" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="baseUrl" value="http://scheme.steamware.net/PIC/CusBG" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<!--<add key="adminEmail" value="paolo.malighetti@unibg.it" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="_fromEmail" value="paolo.malighetti@unibg.it" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>-->
|
||||
<add key="enablePlain" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
|
||||
Reference in New Issue
Block a user