Pipeline now publishes to specific directories and archives them.

This commit is contained in:
Harrison Deng 2022-04-25 03:45:54 -05:00
parent ab6584065b
commit 43c1bc1611

8
Jenkinsfile vendored
View File

@ -40,11 +40,11 @@ pipeline {
}
stage("Publish") {
steps {
dotnetPublish configuration: 'Release', project: 'Props', runtime: 'linux-x64', selfContained: true
dotnetPublish configuration: 'Release', project: 'Props', runtime: 'win-x64', selfContained: true
dotnetPublish configuration: 'Release', outputDirectory: 'props-linux-x64', project: 'Props', runtime: 'linux-x64', selfContained: true
dotnetPublish configuration: 'Release', outputDirectory: 'props-win-x64', project: 'Props', runtime: 'win-x64', selfContained: true
fingerprint 'Props/bin/Release/**/publish/Props*'
tar file: "props-linux-x64.tar.gz", archive: true, compress: true, glob: "Props/bin/Release/**/linux-x64/publish/**/*", overwrite: true
zip zipFile: "props-win-x64.zip", archive: true, glob: "Props/bin/Release/**/win-x64/publish/**/*", overwrite: true
tar file: "props-linux-x64.tar.gz", archive: true, compress: true, dir: "props-linux-x64", overwrite: true
zip zipFile: "props-win-x64.zip", archive: true, dir: "props-win-x64", overwrite: true
}
}
}