From 06d3ce627747ab6504180d40723ce111bf3d5f56 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Feb 24 2018 23:16:22 +0000 Subject: Putting the PR number in the environment would let us pass the same state into the container buildconfig (without patching it in jenkins). This also saves us a bit of admin work because getting the build cause in Jenkins requires whitelisting a couple of groovy methods in the pipeline sandbox, which is doable but not user-friendly. --- diff --git a/app/webhooks.py b/app/webhooks.py index 6929019..6f1d733 100644 --- a/app/webhooks.py +++ b/app/webhooks.py @@ -118,6 +118,7 @@ def openshift_jenkins(): if topic == 'pull-request.new': data['cause'] = json_data['msg']['pullrequest']['id'] + data['PR'] = json_data['msg']['pullrequest']['id'] data['BRANCH'] = json_data['msg']['pullrequest']['branch_from'] else: