From 2feb46a533ff64da7502db2ff9003c361ecfdb62 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Sun, 24 Apr 2022 22:48:46 -0500 Subject: [PATCH] Added archiving and fingerprinting. Removed win-x64 runtime publish. --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f794a72..470769b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,7 @@ pipeline { } stage("Publish") { steps { - dotnetPublish configuration: 'Release', project: 'Props.Shop/Props.Shop.sln', selfContained: false, unstableIfWarnings: true + dotnetPublish configuration: 'Debug', project: 'Props.Shop/Props.Shop.sln', selfContained: false, unstableIfWarnings: true } } stage("Load") { @@ -41,9 +41,8 @@ pipeline { } stage("Publish") { steps { - // TODO: Archive things. - dotnetPublish configuration: 'Release', noRestore: true, project: 'Props', runtime: 'win-x64', sdk: 'Default .NET SDK' - dotnetPublish configuration: 'Release', noRestore: true, project: 'Props', runtime: 'linux-x64', sdk: 'Default .NET SDK' + dotnetPublish configuration: 'Release', noRestore: true, project: 'Props', sdk: 'Default .NET SDK' + archiveArtifacts artifacts: 'bin/**/publish/Props,bin/**/publish/*.pdb', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true } } }