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

(Github plugin) Console Output not echo'ing $payload

    Details

    • Similar Issues:

      Description

      I have a working jenkins instance with github-plugin (https://wiki.jenkins.io/display/JENKINS/GitHub+Plugin) configured. The job is currently accepting posts from github.com and triggering the build. I am able to parse out these 11 environment variables.

       

      echo $payload returns nothing
       
      {{echo GIT_COMMIT $GIT_COMMIT
      echo GIT_BRANCH $GIT_BRANCH
      echo GIT_LOCAL_BRANCH $GIT_LOCAL_BRANCH
      echo GIT_PREVIOUS_COMMIT $GIT_PREVIOUS_COMMIT
      echo GIT_PREVIOUS_SUCCESSFUL_COMMIT $GIT_PREVIOUS_SUCCESSFUL_COMMIT
      echo GIT_URL $GIT_URL
      echo GIT_URL_N - $GIT_URL_N
      echo GIT_AUTHOR_NAME $GIT_AUTHOR_NAME
      echo GIT_COMMITTER_EMAIL $GIT_COMMITTER_EMAIL}}

      However i am unable to get at the PUSH webhook payload example from there https://developer.github.com/v3/activity/events/types/#pushevent

      Ideally i would like to parse out this specific key and value using shell
       
      {{ "pusher":

      {"name": "Codertocat","email": "21031067+Codertocat@users.noreply.github.com"}

      }

        Attachments

          Activity

            People

            • Assignee:
              lanwen Kirill Merkushev
              Reporter:
              winnjohnston Winn Johnston
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: