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

notifyCommit should trigger builds with trailing / defined in SCM URL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • mercurial-plugin
    • None
    • Ubuntu Jenkins 1.580.2

      When the SCM repository URL is configured with a trailing slash, the notifyCommit will not observe the change without it.

      Example...
      Mercurial repo is located at http://<scm root>/fooRepo
      Jenkins job is defined as http://<scm root>/fooRepo/

      notifyCommit URL call is http://<jenkins root>/mercurial/notifyCommit?url=http://<scm root>/fooRepo

      The above Jenkins Job is not triggered.

      I can call notifyCommit with the trailing slash and only the above job is triggered, no other jobs which are listening to the same repo without the trailing slash.

      Due to the large number of job authors on my team, there can be a mix of SCM URL configurations across jobs. I have just begun using the notifyCommit feature and ran across this issue. I think the target should check both URLs ending with or without a trailing slash.

            stevengbrown Steven G Brown
            jgrant216 Jeff G
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: