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

Job URL passed to webhook is incorrect (null base url) for manually triggered builds without SCM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • mattermost-plugin
    • None
    • Jenkins 2.144
      Plugin: mattermost: 2.5.2
      Mattermost: 5.3.1

      Problem

      Job status notifications sent to Jenkins have the following link back url:

      http://nulljob/test-mattermost/8/ 

      While "Test" button notifications (from Global Configuration or from Job Config) have the correct Jenkins base URL:

      Mattermost/Jenkins plugin: you're all set! (parameters: endpoint='https://MATTERMOST/hooks/xxxxxxxxxxxx', room='test', icon='', buildServerUrl='http://JENKINS:8080/')

      Configuration 

      My global configuration has a Jenkins URL correctly set. 

      I've tried both setting and not setting the Build Server URL in the Mattermost config section (to the same value), same result.

      It doesn't matter if I specify the mattermost endpoint URL/channel in the job or in global, or both.

      Jenkins log:

      Oct 12, 2018 9:34:21 AM INFO jenkins.plugins.mattermost.MattermostNotifier prebuild
      Invoking Started...
      Oct 12, 2018 9:34:21 AM INFO jenkins.plugins.mattermost.StandardMattermostService publish
      Posting: to test@https://MATTERMOST/hooks/xxxxxx: test-mattermost - #9 Started by user XXXX [Open](nulljob/test-mattermost/9/) (good)
      Oct 12, 2018 9:34:21 AM INFO jenkins.plugins.mattermost.StandardMattermostService publish
      Posting succeeded
      
      

       

            jovandeginste Jo Vandeginste
            akom Alexander Komarov
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: