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

Adding Bitbucket server with http instead of https URL breaks Creation flow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • Jenkins:
      Core: 2.89
      Plugins: latest on experimental update center, including Blue Ocean 1.3.2
      bitbucket-branch-source 2.2.7

      Client:
      Fedora Workstation 26
      Chrome 62.0.3202.89

      SCM:
      Bitbucket Server 5.2.3
    • Pipeline - December

      Summary:
      After successfully connecting to a repo on a Bitbucket server which has code, but does not have a Jenkinsfile in it, attempting to create one fails in Blue Ocean. The only error message shown is the word "Found" in red text. This is caused by setting up the Bitbucket server with an HTTP URL, rather than an HTTPS URL. Changing from HTTP to HTTPS resolves the issue.

      Routing:
      It's unclear to me at the moment if this is an issue in bitbucket-branch-source, in BO itself, in the editor, or somewhere else.

      Steps to recreate:
      1. Make a local clone of the simple-maven-project-with-tests repo found here.

      2. On your Bitbucket server, create a repository, which you'll use as a remote for this repo you just cloned:

      3. Using Blue Ocean, connect to this Bitbucket server by providing your credentials. Shown below, I've gotten as far as having found the repo, but have not yet selected it:

      4. Click "Create Pipeline." You'll be told there are no Jenkinsfiles, which is expected.

      5. Click the second "Create Pipeline" button which was just generated, and you'll be taken to the editor:

      6. Leave Agent set to any (the default), and click the button to create a stage. Add a Shell Script step, and enter mvn -X clean package as the step:

      7. Click Save, enter a commit message, and leave the default setting of Commit to master. Click Save and Run, and notice the Error at the top of this same dialog:

      8. This can also be recreated by using a different branch name than master.

      Why this is a problem:

      • I've been given no direction as far as what has gone wrong.
      • There's nothing at all in the Jenkins log

      Later this evening, I'll capture a HAR file while retracing my steps.

        1. 172.18.40.95.har
          1.59 MB
        2. image-2017-11-13-17-36-29-175.png
          image-2017-11-13-17-36-29-175.png
          376 kB
        3. image-2017-11-13-17-38-30-222.png
          image-2017-11-13-17-38-30-222.png
          306 kB
        4. image-2017-11-13-17-39-14-912.png
          image-2017-11-13-17-39-14-912.png
          323 kB
        5. image-2017-11-13-17-39-47-604.png
          image-2017-11-13-17-39-47-604.png
          298 kB
        6. image-2017-11-13-17-42-01-061.png
          image-2017-11-13-17-42-01-061.png
          311 kB
        7. image-2017-11-13-17-44-04-291.png
          image-2017-11-13-17-44-04-291.png
          352 kB
        8. screenshot-1.png
          screenshot-1.png
          427 kB
        9. screenshot-2.png
          screenshot-2.png
          400 kB
        10. screenshot-3.png
          screenshot-3.png
          400 kB
        11. screenshot-4.png
          screenshot-4.png
          569 kB
        12. screenshot-5.png
          screenshot-5.png
          361 kB
        13. screenshot-6.png
          screenshot-6.png
          354 kB

            vivek Vivek Pandey
            kshultz Karl Shultz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: