diff --git a/Jenkinsfile b/Jenkinsfile index 88d0611..cf9669f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -181,7 +181,12 @@ pipeline { steps { sh ''' set -euo pipefail - dotnet publish -c Release -o out + # build only the app project + dotnet restore AS400API.csproj + dotnet build AS400API.csproj -c Release -warnaserror:false -p:TreatWarningsAsErrors=false + + # publish the app project (not the solution) + dotnet publish AS400API.csproj -c Release -o out --no-build ''' } post {