diff --git a/.ci/dev/pr-code-checks/Jenkinsfile b/.ci/dev/pr-code-checks/Jenkinsfile index c7abf24743..b9b55e4574 100644 --- a/.ci/dev/pr-code-checks/Jenkinsfile +++ b/.ci/dev/pr-code-checks/Jenkinsfile @@ -56,30 +56,7 @@ pipeline { } stage('Scan API Changes (new plugin)') { steps { - catchError(message: "API Scan failed - breaking changes detected", stageResult: 'FAILURE') { - sh "./gradlew apiDiff" - } - } - post { - success { - script { - String commentText = """\ - |Scanning for breaking API changes introduced by this PR\n - |Scan Succeeded\n - """.stripMargin() - githubPRComment(commentText, "Scanning for breaking API changes introduced by this PR") - } - } - failure { - script { - String commentText = """\ - |Scanning for breaking API changes introduced by this PR\n - |Scan Failed: ${env.BUILD_URL}\n - |If the breaking changes are intentional, run `./gradlew cementApi` and get approval from the Corda team leads. - """.stripMargin() - githubPRComment(commentText, "Scanning for breaking API changes introduced by this PR") - } - } + sh "./gradlew apiDiff" } } }