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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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')
        }
      }

       

        Attachments

          Activity

          rusche Thomas Rusche created issue -
          rusche Thomas Rusche made changes -
          Field Original Value New Value
          Description In job-dsl, the Bitbucket trigger is specified like this:
          {code:java}
          triggers {
              bitbucketPush()
          }{code}

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

           

           
          In job-dsl, the Bitbucket trigger is specified like this:
          {code:java}
          triggers {
              bitbucketPush()
          }{code}
          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.
          {code:java}
          triggers{
            bitbucketPush{
              overrideUrl('https://bitbucket.org/blabla/hello-world-server')
            }
          }{code}
           
          tzach_solomon Tzach Solomon made changes -
          Assignee Tzach Solomon [ tzach_solomon ]
          Hide
          tzach_solomon Tzach Solomon added a comment -

          Added. Thanks Thomas Rusche!

          Show
          tzach_solomon Tzach Solomon added a comment - Added. Thanks Thomas Rusche !
          tzach_solomon Tzach Solomon made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
          tzach_solomon Tzach Solomon made changes -
          Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]

            People

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

              Dates

              Created:
              Updated:
              Resolved: