Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67998



    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.319.3
      github-branch-source 2.11.4

      As already written in JENKINS-39838 there is currently no CHANGE_AUTHOR_EMAIL provided by the github-branch-source-Plugin.

      This is likely the case because the payload of a GitHub webhook contains only the GITHUB_AUTHOR/GITHUB_AUTHOR_DISPLAY_NAME.

      Backstory: We recently switched from Bitbucket to Github and also had to change the plugins in our Jenkins. However we require CHANGE_AUTHOR_EMAIL so that an E-Mail is sent to the corresponding user when the build fails. This is only required because there are currently other bugs that prevent the emailext Plugin from working correctly like e.g. JENKINS-24638. CHANGE_AUTHOR_EMAIL was a good workaround for this problem when we used bitbucket.

      I think resolving the E-Mail can be done by querying the GitHub-API:
      e.g. https://api.github.com/repos/<OWNER>/<REPO>/commits/<REF> or https://api.github.com/repos/<OWNER>/<REPO>/commits?author=<LOGIN>
      This returns the corresponding GitHub user and the E-Mail which was used for committing.

            Unassigned Unassigned
            ab_xdev Alex B
            0 Vote for this issue
            2 Start watching this issue