From 85d8f2bf6fb8d7fef5f3f15eba860bd9346fc281 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Mon, 25 Apr 2022 03:06:24 -0500 Subject: [PATCH] Added tar generation and separate fingerprinting. --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d8b68dd..c0c9c04 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,8 +18,7 @@ pipeline { stage("Publish") { steps { dotnetPublish configuration: 'Release', noRestore: true, project: 'Props.Shop/Props.Shop.sln', selfContained: false, unstableIfWarnings: true - archiveArtifacts artifacts: 'Props.Shop/**/bin/Release/**/publish/Props.Shop.*', excludes: 'Props.Shop/*.Tests/**/*, **/Props.Shop.Framework.*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true - archiveArtifacts artifacts: 'Props.Shop/Framework/bin/Release/**/publish/Props.Shop.Framework.*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true + fingerprint 'Props.Shop/**/bin/Release/**/publish/Props.Shop.*' sh "python3 scripts/load_shop_modules.py" } } @@ -43,7 +42,9 @@ pipeline { steps { dotnetPublish configuration: 'Release', project: 'Props', runtime: 'linux-x64', selfContained: true dotnetPublish configuration: 'Release', project: 'Props', runtime: 'win-x64', selfContained: true - archiveArtifacts artifacts: 'Props/bin/Release/**/publish/Props*', excludes: '**/Props.Shop.Framework.*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true + fingerprint 'Props/bin/Release/**/publish/Props*' + tar file: "props-linux-x64", archive: true, compress: true, glob: "Props/bin/Release/**/linux-x64/publish/**/*" + tar file: "props-win-x64", archive: true, compress: true, glob: "Props/bin/Release/**/win-x64/publish/**/*" } } }