pipeline { agent any stages { stage('build') { steps { withGradle { sh './gradlew applyPatches --no-daemon' sh './gradlew paperclipJar --no-daemon' } } } } post { always { archiveArtifacts artifacts: 'build/libs/*.jar', fingerprint: true cleanWs() } } }