#1 Putting the PR number in the environment
Merged 6 years ago by cverna. Opened 6 years ago by bstinson.
bstinson/pagure-2-openshift pr-in-env  into  master

file modified
+1
@@ -118,6 +118,7 @@ 

  

              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:

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.

Pull-Request has been merged by cverna

6 years ago
Metadata