diff --git a/Jenkinsfile b/Jenkinsfile index 31f2b09..cc3b980 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,19 +1,21 @@ pipeline { agent any stages { - stage('build') { + stage("build") { steps { withGradle { - sh './gradlew build javadoc publish --no-daemon' + sh "./gradlew build javadoc publish --no-daemon" } } } } post { always { - archiveArtifacts artifacts: 'build/libs/*.jar', fingerprint: true - javadoc javadocDir 'build/docs/javadoc' - javadoc keepAll false + archiveArtifacts artifacts: "build/libs/*.jar", fingerprint: true + javadoc { + javadocDir "build/docs/javadoc", + javadoc keepAll false + } discordSend description: "Jenkins", link: env.BUILD_URL, result: currentBuild.currentResult, title: JOB_NAME, webhookURL: env.PLEX_WEBHOOK_URL deleteWs() }