Initial commit
Some checks failed
PSU-X25-CICD/PSU-Test-01/pipeline/head There was a failure building this commit
PSU-CICD/PSU-Test-01/pipeline/head This commit looks good

This commit is contained in:
PSU-CICD
2026-03-01 09:45:41 +00:00
commit 91204da90c
88 changed files with 84102 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#!/bin/bash
echo "OK" > jenkins.result
# Find all .csproj files and loop through them
find . -type f -name "*.csproj" | while read -r csproj; do
echo "Building $csproj..."
# Run dotnet build on the csproj file
dotnet build "$csproj"
# If dotnet build fails (non-zero exit code), exit the script with an error code
if [ $? -ne 0 ]; then
echo "Build failed for $csproj. Exiting with error."
echo "ERROR" > jenkins.result
fi
done
RESULT=$(cat jenkins.result)
echo "RESULT=$RESULT"
if [ "$RESULT" == "OK" ]; then
echo "All builds succeeded."
exit 0
else
echo "Errors were recorded"
exit 1
fi