fix errore email recipients mancanti in jenkinsfile...

This commit is contained in:
Samuele E. Locatelli
2017-11-08 10:15:34 +01:00
parent 7cd193a041
commit a7ac88041b
Vendored
+16 -13
View File
@@ -1,5 +1,8 @@
pipeline {
agent none
environment {
EMAIL_RECIPIENTS = 'samuele@steamware.net'
}
stages {
stage('Checkout') {
agent any
@@ -220,7 +223,8 @@ pipeline {
}
}
}
stage('AutoUpdateDeploy') {
// ora deploy FILES x Auto Update
stage('DeployAUF') {
agent any
steps {
// in primis compilo a seconda del branch... TUTTO tranne develop...
@@ -234,7 +238,7 @@ pipeline {
script {
parallel (
LANDING: {
sleep 5
sleep 0
},
ADMIN: {
sleep 0
@@ -243,30 +247,29 @@ pipeline {
sleep 0
},
MON: {
sleep 3
sleep 0
},
SITE: {
sleep 1
sleep 0
},
TABLET: {
sleep 2
sleep 0
bat "\"${tool 'MSBuild-14.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /T:Package /P:Configuration=Donati /p:PublishProfile=Donati.pubxml /p:VisualStudioVersion=14.0 /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/${env.BRANCH_NAME}/Build_${env.versionNumber}.zip /p:DeployIisAppPath=\"Default Web Site/MP/TAB\" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-Tablet/MP-Tablet.csproj"
// manifest.xml: aggiorno versNumber ed URL del branch di update...
bat "fart.exe MP-Tablet\\Resources\\manifest.xml 1.0.0.0 ${env.versionNumber} || EXIT /B 0"
bat "fart.exe MP-Tablet\\Resources\\manifest.xml {{BRANCHNAME}} ${env.BRANCH_NAME} || EXIT /B 0"
bat "fart.exe MP-Tablet\\Resources\\ChangeLog.html {{CURRENT-REL}} ${env.versionNumber} || EXIT /B 0"
writeFile file: 'MP-Tablet\\changeLog.log', text: "${getChangeString()}"
// bat "E:\\Jenkins\\exportDropbox.bat \"${WORKSPACE}\\MP-Tablet\\ReleaseClienti\\Donati\" \"E:\\Staging\\byProd\\MP\\Donati\\MP-TAB\" "
// bat "fart.exe MP-Tablet\\Resources\\ChangeLog.html {{LAST-CHANGES}} \"${getChangeString()}\" || EXIT /B 0"
// copio ed esporto in IIS02 i vari files .xml, .html, .zip
powershell '(Get-Content MP-Tablet\\Resources\\ChangeLog.html) | ForEach-Object { $_ -replace \"{{LAST-CHANGES}}\", \"${getChangeString()}\" } | Set-Content MP-Tablet\\Resources\\ChangeLog.html'
// bat "xcopy /y MP-Tablet\\Resources\\manifest.xml c:\\inetpub\\wwwroot\\SWS\\MAPO\TAB\\${env.BRANCH_NAME}\\ "
// bat "xcopy /y MP-Tablet\\Resources\\ChangeLog.html c:\\inetpub\\wwwroot\\SWS\\MAPO\TAB\\${env.BRANCH_NAME}\\ "
// bat "xcopy /y MP-Tablet\\Resources\\logoSteamware.png c:\\inetpub\\wwwroot\\SWS\\MAPO\TAB\\${env.BRANCH_NAME}\\ "
// copio ed esporto in IIS02 i vari files .xml, .html, .zip
bat "xcopy /y MP-Tablet\\Resources\\manifest.xml c:\\inetpub\\wwwroot\\SWS\\MAPO\TAB\\${env.BRANCH_NAME}\\ "
bat "xcopy /y MP-Tablet\\Resources\\ChangeLog.html c:\\inetpub\\wwwroot\\SWS\\MAPO\TAB\\${env.BRANCH_NAME}\\ "
bat "xcopy /y MP-Tablet\\Resources\\logoSteamware.png c:\\inetpub\\wwwroot\\SWS\\MAPO\TAB\\${env.BRANCH_NAME}\\ "
// // salvo copia della versione...
// bat "xcopy /y Releases\\${env.BRANCH_NAME}\\MAPO-IOB-WIN.zip E:\\Staging\\byProd\\MAPO\TAB\\${env.BRANCH_NAME}\\${env.versionNumber}\\ "
// salvo copia della versione...
bat "xcopy /y MP-Tablet\\ReleaseClienti\\${env.BRANCH_NAME}\\Build_${env.versionNumber}.zip E:\\Staging\\byProd\\MP\\${env.BRANCH_NAME}\\MP-TAB\\ "
// // elimino files inutili di resources e pubblico
// bat "RD /S /Q IOB-WIN\\Resources"