trigger: return non-json metadata
This commit is contained in:
parent
bd57c6a8fb
commit
3798c5f377
1 changed files with 3 additions and 2 deletions
|
@ -594,10 +594,11 @@ class CustomBuildTrigger(BuildTrigger):
|
|||
|
||||
def _metadata_from_payload(self, payload):
|
||||
try:
|
||||
validate(json.loads(payload), self.payload_schema)
|
||||
metadata = json.loads(payload)
|
||||
validate(metadata, self.payload_schema)
|
||||
except:
|
||||
raise InvalidPayloadException()
|
||||
return payload
|
||||
return metadata
|
||||
|
||||
def handle_trigger_request(self, request, trigger):
|
||||
payload = request.get_json()
|
||||
|
|
Reference in a new issue