ancora semplificazione conf
This commit is contained in:
Vendored
+9
-10
@@ -47,7 +47,7 @@ pipeline {
|
||||
parallel (
|
||||
NKC_SITE: {
|
||||
sleep 0
|
||||
bat "\"${tool 'MSBuild-16.0'}\" NKC_WF/NKC_WF.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
|
||||
bat "\"${tool 'MSBuild-16.0'}\" NKC_WF/NKC_WF.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /p:verbosity=minimal /m"
|
||||
},
|
||||
failFast: false)
|
||||
}
|
||||
@@ -74,7 +74,7 @@ pipeline {
|
||||
{
|
||||
sleep 1
|
||||
// SITE
|
||||
bat "\"${tool 'MSBuild-16.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=16.0 /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ NKC_WF/NKC_WF.csproj /p:verbosity=minimal"
|
||||
bat "\"${tool 'MSBuild-16.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=16.0 /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /p:verbosity=minimal NKC_WF/NKC_WF.csproj"
|
||||
sleep 3
|
||||
}
|
||||
},
|
||||
@@ -87,7 +87,7 @@ pipeline {
|
||||
{
|
||||
sleep 3
|
||||
// SITE
|
||||
bat "\"${tool 'MSBuild-16.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=16.0 /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ NKC_WF/NKC_WF.csproj /p:verbosity=minimal"
|
||||
bat "\"${tool 'MSBuild-16.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=16.0 /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /p:verbosity=minimal NKC_WF/NKC_WF.csproj"
|
||||
sleep 1
|
||||
}
|
||||
},
|
||||
@@ -118,19 +118,17 @@ pipeline {
|
||||
if (env.BRANCH_NAME == "develop") {
|
||||
env.config = "Debug"
|
||||
env.classifier = "unstable"
|
||||
env.groupId = "NKC.unstable"
|
||||
}
|
||||
else if (env.BRANCH_NAME == "master") {
|
||||
env.config = "Release"
|
||||
env.classifier = "stable"
|
||||
env.groupId = "NKC.stable"
|
||||
}
|
||||
|
||||
parallel (
|
||||
NKC_UPLOAD: {
|
||||
sleep 0
|
||||
// SITE
|
||||
bat "\"${tool 'MSBuild-16.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /T:Package /P:Configuration=Prod /p:PublishProfile=${env.BRANCH_NAME}.pubxml /p:VisualStudioVersion=16.0 /p:RunCodeAnalysis=false /p:AutoParameterizationWebConfigConnectionStrings=False /p:PackageLocation=Releases/${env.BRANCH_NAME}/NKC.zip /p:DeployIisAppPath=\"Default Web Site/NKC\" /p:PackageAsSingleFile=True /p:OutputPath=bin/ NKC_WF/NKC_WF.csproj /p:verbosity=minimal"
|
||||
bat "\"${tool 'MSBuild-16.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /T:Package /P:Configuration=Prod /p:PublishProfile=${env.BRANCH_NAME}.pubxml /p:VisualStudioVersion=16.0 /p:RunCodeAnalysis=false /p:AutoParameterizationWebConfigConnectionStrings=False /p:PackageLocation=Releases/${env.BRANCH_NAME}/NKC.zip /p:DeployIisAppPath=\"Default Web Site/NKC\" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /p:verbosity=minimal NKC_WF/NKC_WF.csproj"
|
||||
setManifestFile("NKC_WF\\", "NKC")
|
||||
|
||||
// ---------- Upload versione 0 ----------
|
||||
@@ -138,13 +136,14 @@ pipeline {
|
||||
artifacts: [
|
||||
[
|
||||
artifactId: 'NKC',
|
||||
classifier: '',
|
||||
// classifier: "${env.classifier}",
|
||||
file: "NKC_WF\\Releases\\${env.BRANCH_NAME}\\NKC.zip",
|
||||
type: 'zip'
|
||||
],
|
||||
[
|
||||
artifactId: 'manifest',
|
||||
// classifier: "${env.classifier}",
|
||||
classifier: '',
|
||||
file: "NKC_WF\\Resources\\manifest.xml",
|
||||
type: 'xml'
|
||||
]
|
||||
@@ -154,7 +153,7 @@ pipeline {
|
||||
,nexusVersion: 'nexus3'
|
||||
,protocol: 'http'
|
||||
,repository: 'SWS'
|
||||
,groupId: "${env.groupId}.LAST"
|
||||
,groupId: "NKC.${env.classifier}.LAST"
|
||||
,version: ""
|
||||
)
|
||||
|
||||
@@ -164,7 +163,7 @@ pipeline {
|
||||
artifacts: [
|
||||
[
|
||||
artifactId: 'NKC',
|
||||
// classifier: "${env.classifier}",
|
||||
classifier: '',
|
||||
file: "NKC_WF\\Releases\\${env.BRANCH_NAME}\\NKC.zip",
|
||||
type: 'zip'
|
||||
]
|
||||
@@ -174,7 +173,7 @@ pipeline {
|
||||
,nexusVersion: 'nexus3'
|
||||
,protocol: 'http'
|
||||
,repository: 'SWS'
|
||||
,groupId: "${env.groupId}.ARCHIVE"
|
||||
,groupId: "NKC.${env.classifier}.ARCHIVE"
|
||||
,version: "${env.versionNumber}"
|
||||
)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user