pipeline { agent any stages { stage('Setup Dependencies') { steps { sh 'dotnet restore' } } stage('Build') { parallel { stage('Linux') { steps { sh 'dotnet publish -r linux-x64 -c Release --self-contained true --no-restore --output Linux-x64/' } } stage('Windows') { steps { sh 'dotnet publish -r win-x64 -c Release --self-contained true --no-restore --output Windows-x64/' } } } } stage('Archive') { parallel { stage('Linux') { steps { archiveArtifacts(artifacts: 'Linux-x64/SupportChild', caseSensitive: true) } } stage('Windows') { steps { archiveArtifacts(artifacts: 'Windows-x64/SupportChild.exe', caseSensitive: true) } } } } } }