diff options
author | Thomas Draebing <thomas.draebing@sap.com> | 2019-10-17 09:42:07 +0200 |
---|---|---|
committer | Thomas Draebing <thomas.draebing@sap.com> | 2019-10-17 11:29:16 +0200 |
commit | c82125dd1773a37eb95377218935355451c48cdf (patch) | |
tree | 6280111e3963016d8f1f7c04634340cbecfe13ab | |
parent | dab2dcf6b9381e75e51c0cdd882fcbcaf3a6ef4e (diff) |
Fix expected response code when posting checks in Jenkinsfile
The response code returned on success was 200, but the job described
in the Jenkinsfile expected 201. Now the job correctly expects 200.
Change-Id: I7f22484d98f399fa8dbebec1bdc73926bf8e4040
-rw-r--r-- | Jenkinsfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index b0d70debaa..ffe249c478 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -102,7 +102,7 @@ def postCheck(check) { def json = check.createCheckPayload() httpRequest(httpMode: 'POST', authentication: Globals.gerritCredentialsId, contentType: 'APPLICATION_JSON', requestBody: json, - validResponseCodes: '201', url: gerritPostUrl) + validResponseCodes: '200', url: gerritPostUrl) check.printCheckSummary() } catch(Exception e) { echo "ERROR> Failed to post check results to Gerrit: ${e}" |