pipeline { agent any tools { dotnetsdk 'dotnet6' } stages { stage('Build') { steps { dotnetClean echo 'Building..' sh 'dotnet publish --configuration Release --output PUBLISH-linux --os linux' sh 'dotnet publish --configuration Release --output PUBLISH-windows --os windows' } } } }