Removed nested stages.
This commit is contained in:
parent
9f291dcfed
commit
79f7688980
68
Jenkinsfile
vendored
68
Jenkinsfile
vendored
@ -15,46 +15,38 @@ pipeline {
|
|||||||
sh 'npm install --prefix ./Props'
|
sh 'npm install --prefix ./Props'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Props.Shop") {
|
stage("Test Props.Shop") {
|
||||||
stages {
|
steps {
|
||||||
stage("Test") {
|
sh returnStatus: true, script: 'conda run -n base dotnet test --logger xunit --no-restore Props.Shop/**/*.Tests.csproj'
|
||||||
steps {
|
xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Shop/*.Tests/TestResults/*.xml', stopProcessingIfError: true)])
|
||||||
sh returnStatus: true, script: 'conda run -n base dotnet test --logger xunit --no-restore Props.Shop/**/*.Tests.csproj'
|
|
||||||
xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Shop/*.Tests/TestResults/*.xml', stopProcessingIfError: true)])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage("Publish") {
|
|
||||||
steps {
|
|
||||||
sh '''#!/bin/bash
|
|
||||||
for file in Props.Shop/**/*.csproj
|
|
||||||
do
|
|
||||||
conda run -n base dotnet publish --configuration Release --output output/shop-modules $file
|
|
||||||
done
|
|
||||||
'''
|
|
||||||
fingerprint 'output/shop-modules/**/Props.Shop.*'
|
|
||||||
sh 'mkdir -p ./Props/shops/'
|
|
||||||
sh 'cp ./output/shop-modules/*.dll ./output/shop-modules/*.deps.json ./Props/shops/.'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Props") {
|
stage("Publish Props.Shop") {
|
||||||
stages {
|
steps {
|
||||||
stage("Test") {
|
sh '''#!/bin/bash
|
||||||
steps {
|
for file in Props.Shop/**/*.csproj
|
||||||
sh returnStatus: true, script: 'conda run -n base dotnet test --logger xunit --no-restore Props.Tests/Props.Tests.csproj'
|
do
|
||||||
xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Tests/TestResults/*.xml', stopProcessingIfError: true)])
|
conda run -n base dotnet publish --configuration Release --output output/shop-modules $file
|
||||||
}
|
done
|
||||||
}
|
'''
|
||||||
stage("Publish") {
|
fingerprint 'output/shop-modules/**/Props.Shop.*'
|
||||||
steps {
|
sh 'mkdir -p ./Props/shops/'
|
||||||
sh 'conda run -n base dotnet publish --configuration Release --output output/props/props-linux-x64 --runtime linux-x64 --self-contained Props'
|
sh 'cp ./output/shop-modules/*.dll ./output/shop-modules/*.deps.json ./Props/shops/.'
|
||||||
sh 'conda run -n base dotnet publish --configuration Release --output output/props/props-win-x64 --runtime win-x64 --self-contained Props'
|
}
|
||||||
fingerprint 'output/props/**/Props*'
|
}
|
||||||
tar file: "output/props-linux-x64.tar.gz", archive: true, compress: true, dir: "output/props/props-linux-x64"
|
stage("Test Props") {
|
||||||
zip zipFile: "output/props-win-x64.zip", archive: true, dir: "output/props/props-win-x64"
|
steps {
|
||||||
}
|
sh returnStatus: true, script: 'conda run -n base dotnet test --logger xunit --no-restore Props.Tests/Props.Tests.csproj'
|
||||||
}
|
xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Tests/TestResults/*.xml', stopProcessingIfError: true)])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage("Publish Props") {
|
||||||
|
steps {
|
||||||
|
sh 'conda run -n base dotnet publish --configuration Release --output output/props/props-linux-x64 --runtime linux-x64 --self-contained Props'
|
||||||
|
sh 'conda run -n base dotnet publish --configuration Release --output output/props/props-win-x64 --runtime win-x64 --self-contained Props'
|
||||||
|
fingerprint 'output/props/**/Props*'
|
||||||
|
tar file: "output/props-linux-x64.tar.gz", archive: true, compress: true, dir: "output/props/props-linux-x64"
|
||||||
|
zip zipFile: "output/props-win-x64.zip", archive: true, dir: "output/props/props-win-x64"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user