pipeline { agent { label '.net7.0' } stages { stage('Build classlib') { steps { sh '''cd classlib dotnet build --no-incremental --force --configuration Release dotnet publish -c Release''' } } } post { success { archiveArtifacts artifacts: 'classlib/bin/Release/netstandard2.1/publish/*.dll, *.psd1, *.psm1, LICENSE, **/*.ps1xml, **/*.ps1', followSymlinks: false, onlyIfSuccessful: true } } }