Update Jenkinsfile to properly handle !deploy commands
Created by: ramereth
This provides some enhancements which require osuosl-cookbooks/osl-jenkins#140 before it can be merged. This does the following:
- Check whether the payload is an issue or pull_request
- Checks to see if the author_association is MEMBER for the user issuing the !deploy command
- Correctly find the PR number between issue or pull_request payload types
- If pull_request, set the GIT_COMMIT env var
- If issue, don't set GIT_COMMIT but set GIT_PR instead
- Don't checkout the osl-jenkins cookbook anymore and instead use the local copy of the files which the cookbook should have placed. This only needs to be used on the master so this should be safe.
- Use the new event_type from our payload so we can use it for logic parsing