updated pipeline steps

This commit is contained in:
tomstark99 2024-06-14 15:00:14 +01:00
parent 67f7660669
commit f6d6dbb5e3

View File

@ -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"
}
}
}