From 9631cb4b6b126d6bfee5e08aad284adfffd8f342 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Fri, 19 Jul 2024 18:06:01 +0000 Subject: [PATCH] Added for loop to iterate over all shop modules. --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f58e715..e6d6af1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,7 +25,11 @@ pipeline { } stage("Publish") { steps { - sh 'conda run -n base dotnet publish --configuration Release --output output/shop-modules Props.Shop/**/*.csproj' + sh '''#!/bin/bash + for file in Props.Shop/**/*.csproj do + conda run -n base dotnet publish --configuration Release --output output/shop-modules $file + done + ''' sh 'rm output/shop-modules/**/*.Tests.dll' fingerprint 'output/shop-modules/**/Props.Shop.*' sh 'cp ./Props.Shop/output/shop-modules/**/*.dll ./Props.Shop/output/shop-modules/**/*.deps.json ./Props/shops/.'