mirror of
https://github.com/corda/corda.git
synced 2025-02-16 07:30:46 +00:00
updated pipeline steps
This commit is contained in:
parent
67f7660669
commit
f6d6dbb5e3
25
.ci/dev/pr-code-checks/Jenkinsfile
vendored
25
.ci/dev/pr-code-checks/Jenkinsfile
vendored
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user