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

Bitbucket plugin add example how to specify the overrideUrl in job-dsl

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • bitbucket-plugin
    • None

      In job-dsl, the Bitbucket trigger is specified like this:

      triggers {
          bitbucketPush()
      }

      How to specify the overrideUrl?
      This information should be added to https://plugins.jenkins.io/bitbucket/

      Update: Figured it out. Someone could add this to the linked plugin page.

      triggers{
        bitbucketPush{
          overrideUrl('https://bitbucket.org/blabla/hello-world-server')
        }
      }

       

            tzach_solomon Tzach Solomon
            rusche Thomas Rusche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: