pipeline { agent { dockerfile { filename 'Dockerfile' } } stages { stage('Build') { steps { // Build sh 'cd /app; ./build.sh' // Copy Artifacts sh 'mkdir out; cp /out/*.deb out' } post { success { archiveArtifacts artifacts: 'out/*.deb', fingerprint: true } } } } }