2022-04-24 05:01:55 +00:00
|
|
|
pipeline {
|
2024-07-12 22:28:47 +00:00
|
|
|
agent {
|
|
|
|
kubernetes {
|
|
|
|
cloud 'Reslate Systems'
|
|
|
|
defaultContainer 'conda'
|
|
|
|
}
|
|
|
|
}
|
2024-07-20 05:07:36 +00:00
|
|
|
environment {
|
|
|
|
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = "1"
|
|
|
|
}
|
2022-04-24 05:01:55 +00:00
|
|
|
stages {
|
2022-12-01 04:48:54 +00:00
|
|
|
stage("Install") {
|
2022-04-25 08:56:41 +00:00
|
|
|
steps {
|
2024-07-20 05:07:36 +00:00
|
|
|
sh 'conda update conda -y -q'
|
2024-07-20 01:50:47 +00:00
|
|
|
sh 'conda env update -n base --file environment.yml'
|
2024-07-19 17:15:04 +00:00
|
|
|
sh 'conda run -n base dotnet restore props.sln'
|
2024-07-12 22:28:47 +00:00
|
|
|
sh 'npm install --prefix ./Props'
|
2022-04-25 08:56:41 +00:00
|
|
|
}
|
|
|
|
}
|
2024-07-20 00:42:06 +00:00
|
|
|
stage("Test Props.Shop") {
|
|
|
|
steps {
|
|
|
|
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 Props.Shop") {
|
|
|
|
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/.'
|
2022-04-24 05:01:55 +00:00
|
|
|
}
|
|
|
|
}
|
2024-07-20 00:42:06 +00:00
|
|
|
stage("Test Props") {
|
|
|
|
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*'
|
2024-07-20 05:07:36 +00:00
|
|
|
sh 'conda run -n base tar -czf output/props-linux-x64.tar.gz output/props/props-linux-x64'
|
|
|
|
sh 'conda run -n base zip -r output/props-win-x64.zip output/props/props-win-x64'
|
|
|
|
archiveArtifacts artifacts: 'output/*.tar.gz,output/*.zip', followSymlinks: false
|
2022-04-24 05:01:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|