Added tar generation and separate fingerprinting.

This commit is contained in:
Harrison Deng 2022-04-25 03:06:24 -05:00
parent 7d85b8625f
commit 85d8f2bf6f

7
Jenkinsfile vendored
View File

@ -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/**/*"
}
}
}