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

Looking for documentation on HTTP Request variables

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • http-request-plugin
    • None

      Hello, I looked through the README.md file and doesn't look like you guys provided any insight on if and how you can send variables as a response body. For my use case, I want to send the project and build number to Mattermost. There is a Mattermost plugin already, but it seems as though I keep coming up to a "Failure" error and it's not very helpful because that's all it sends back.

      I looked into using HTTP request plugin and that actually does seem to be sending notifications to my Mattermost channel. The issue is I don't know if the HTTP request plugin supports passing in variables from either Jenkins or environment variables.

      I want to send a notification to my Mattermost channel using something like this.

       

      Build Successful: ${env.JOB_NAME} - Build #${env.BUILD_NUMBER}

      Or

      Build Failed: ${env.JOB_NAME} - Build #${env.BUILD_NUMBER} 

       

            janario Janario Oliveira
            thelastrider Test
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: