From 43c1bc161142d332357b9b0dcb54929f91e44035 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Mon, 25 Apr 2022 03:45:54 -0500 Subject: [PATCH] Pipeline now publishes to specific directories and archives them. --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 99dd3da..fad4760 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 } } }