jobs/UpdateSrcRevisions: Ignore errors when PR already exists
This commit is contained in:
parent
5bd30a70f1
commit
e57d4fb27b
|
|
@ -117,6 +117,12 @@ def createPR(theBranch) {
|
|||
--header '${acceptHeader}' \
|
||||
--header '${contentHeader}' \
|
||||
--data '${prDataJson}'").toString()
|
||||
|
||||
|
||||
// It is okay if the pull request already exists: we can ignore the error
|
||||
if(prResponse.contains("DuplicatePullRequestException"))
|
||||
return
|
||||
|
||||
if(prResponse.contains("error")) {
|
||||
error("Failed creating PR/MR:\n${prResponse}")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue