Added for loop to iterate over all shop modules.
Some checks failed
ydeng/props/pipeline/head There was a failure building this commit

This commit is contained in:
Harrison Deng 2024-07-19 18:06:01 +00:00
parent 73cc43af3c
commit 9631cb4b6b

6
Jenkinsfile vendored
View File

@ -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/.'