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

Cannot mark Multibranch Pipeline as Favorite in Blue Ocean when no master branch

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Duplicate
    • blueocean-plugin
    • jenkins-2.7.4
      blueocean - Built at 27th September 2016 03:05 AM (no branch) 57f7758
      Safari Version 9.1.3 (& FireFox 49.0.1)

    Description

      Summary: if there is no master branch, if you try to favourite a MB pipeline (vs a specific branch) it does incorrect things. It should work out what the default branch is (or ask user) or at least tell them to pick a branch... (latter is easiest).

      If a user has favourited a MB pipeline folder in classic, blue ocean should ignore that.


      Steps:

      1. Click "New Item" and Create "Multibranch Pipeline" without branch "master".
      2. Open Dashboard Jenkins. Check "Favorite" button for Multibranch Pipeline.
      3. Open Jenkins Blue Ocean.
        Actual Result: New line for this job has been created in "Favorites" (grey colour). "Run" button hasn't worked.
      4. Open Dashboard Jenkins -> this Multibranch Pipeline. Check "Favorite" button for any branch.
        E.R. = A.R.: No error. Favorites Job have displayed correctly in Jenkins Blue Ocean.
      5. Disable "Favorite" for this job.
      6. Open Jenkins Blue Ocean.
      7. Click "Favorite" button for Multibranch Pipeline.
        Expected Result: Favorite label has been added. New line for this job has been created in "Favorites".
        Actual Result: Failed to load resource: the server responded with a status of 400 (Bad Request)
        {
            "message" : "no master branch to favorite",
            "code" : 400,
            "errors" : [ ]
        }
        
      8. Disable "Favorite" for this job.
        Expected Result: Favorite label has been deleted.
        Actual Result: TypeError: undefined is not an object (evaluating 'favoriteToRemove._links')

      Attachments

        Issue Links

          Activity

            ks_nenasheva Kseniia Nenasheva created issue -
            ks_nenasheva Kseniia Nenasheva made changes -
            Field Original Value New Value
            Attachment PipelineMB_favorite.gif [ 34131 ]
            ks_nenasheva Kseniia Nenasheva made changes -
            Summary Can't put a label "Favorites" for Multibranch Pipeline in Jenkins Blue Ocean Cannot mark Multibranch Pipeline as Favorite in Blue Ocean
            ks_nenasheva Kseniia Nenasheva made changes -
            Description +Steps:+
            # Click "New Item" and Create "Multibranch Pipeline".
            # Open Dashboard Jenkins. Check "Favorite" button for Multibranch Pipeline.
            *E.R. = A.R.:* No error. Favorites Job have displayed correctly in Jenkins Blue Ocean.
            # Disable "Favorite" for this job.
            # Open Jenkins Blue Ocean.
            # Click "Favorite" button for Multibranch Pipeline.
            *Expected Result:* Favorite label has been added. New line for this job has been created in "Favorites".
            *Actual Result:* Failed to load resource: the server responded with a status of 400 (Bad Request)
            {noformat}
            {
                "message" : "no master branch to favorite",
                "code" : 400,
                "errors" : [ ]
            }
            {noformat}
            # Disable "Favorite" for this job.
            *Expected Result:* Favorite label has been deleted.
            *Actual Result:* TypeError: undefined is not an object (evaluating 'favoriteToRemove._links')
            +Steps:+
            # Click "New Item" and Create "Multibranch Pipeline" without branch "master".
            # Open Dashboard Jenkins. Check "Favorite" button for Multibranch Pipeline.
            *E.R. = A.R.:* No error. Favorites Job have displayed correctly in Jenkins Blue Ocean.
            # Disable "Favorite" for this job.
            # Open Jenkins Blue Ocean.
            # Click "Favorite" button for Multibranch Pipeline.
            *Expected Result:* Favorite label has been added. New line for this job has been created in "Favorites".
            *Actual Result:* Failed to load resource: the server responded with a status of 400 (Bad Request)
            {noformat}
            {
                "message" : "no master branch to favorite",
                "code" : 400,
                "errors" : [ ]
            }
            {noformat}
            # Disable "Favorite" for this job.
            *Expected Result:* Favorite label has been deleted.
            *Actual Result:* TypeError: undefined is not an object (evaluating 'favoriteToRemove._links')
            ks_nenasheva Kseniia Nenasheva made changes -
            Description +Steps:+
            # Click "New Item" and Create "Multibranch Pipeline" without branch "master".
            # Open Dashboard Jenkins. Check "Favorite" button for Multibranch Pipeline.
            *E.R. = A.R.:* No error. Favorites Job have displayed correctly in Jenkins Blue Ocean.
            # Disable "Favorite" for this job.
            # Open Jenkins Blue Ocean.
            # Click "Favorite" button for Multibranch Pipeline.
            *Expected Result:* Favorite label has been added. New line for this job has been created in "Favorites".
            *Actual Result:* Failed to load resource: the server responded with a status of 400 (Bad Request)
            {noformat}
            {
                "message" : "no master branch to favorite",
                "code" : 400,
                "errors" : [ ]
            }
            {noformat}
            # Disable "Favorite" for this job.
            *Expected Result:* Favorite label has been deleted.
            *Actual Result:* TypeError: undefined is not an object (evaluating 'favoriteToRemove._links')
            +Steps:+
            # Click "New Item" and Create "Multibranch Pipeline" without branch "master".
            # Open Dashboard Jenkins. Check "Favorite" button for Multibranch Pipeline.
            # Open Jenkins Blue Ocean.
            *Actual Result:* New line for this job has been created in "Favorites" (grey colour). "Run" button hasn't worked.
            # Open Dashboard Jenkins -> this Multibranch Pipeline. Check "Favorite" button for any branch.
            *E.R. = A.R.:* No error. Favorites Job have displayed correctly in Jenkins Blue Ocean.
            # Disable "Favorite" for this job.
            # Open Jenkins Blue Ocean.
            # Click "Favorite" button for Multibranch Pipeline.
            *Expected Result:* Favorite label has been added. New line for this job has been created in "Favorites".
            *Actual Result:* Failed to load resource: the server responded with a status of 400 (Bad Request)
            {noformat}
            {
                "message" : "no master branch to favorite",
                "code" : 400,
                "errors" : [ ]
            }
            {noformat}
            # Disable "Favorite" for this job.
            *Expected Result:* Favorite label has been deleted.
            *Actual Result:* TypeError: undefined is not an object (evaluating 'favoriteToRemove._links')
            michaelneale Michael Neale made changes -
            Assignee Cliff Meyers [ cliffmeyers ]
            michaelneale Michael Neale made changes -
            Epic Link JENKINS-35761 [ 171656 ]
            jamesdumay James Dumay made changes -
            Link This issue is blocked by JENKINS-39083 [ JENKINS-39083 ]
            jamesdumay James Dumay made changes -
            Link This issue is blocked by JENKINS-39082 [ JENKINS-39082 ]
            michaelneale Michael Neale made changes -
            Sprint indian [ 126 ]
            michaelneale Michael Neale made changes -
            Summary Cannot mark Multibranch Pipeline as Favorite in Blue Ocean Cannot mark Multibranch Pipeline as Favorite in Blue Ocean when no master branch
            michaelneale Michael Neale made changes -
            Description +Steps:+
            # Click "New Item" and Create "Multibranch Pipeline" without branch "master".
            # Open Dashboard Jenkins. Check "Favorite" button for Multibranch Pipeline.
            # Open Jenkins Blue Ocean.
            *Actual Result:* New line for this job has been created in "Favorites" (grey colour). "Run" button hasn't worked.
            # Open Dashboard Jenkins -> this Multibranch Pipeline. Check "Favorite" button for any branch.
            *E.R. = A.R.:* No error. Favorites Job have displayed correctly in Jenkins Blue Ocean.
            # Disable "Favorite" for this job.
            # Open Jenkins Blue Ocean.
            # Click "Favorite" button for Multibranch Pipeline.
            *Expected Result:* Favorite label has been added. New line for this job has been created in "Favorites".
            *Actual Result:* Failed to load resource: the server responded with a status of 400 (Bad Request)
            {noformat}
            {
                "message" : "no master branch to favorite",
                "code" : 400,
                "errors" : [ ]
            }
            {noformat}
            # Disable "Favorite" for this job.
            *Expected Result:* Favorite label has been deleted.
            *Actual Result:* TypeError: undefined is not an object (evaluating 'favoriteToRemove._links')
            Summary: if there is no master branch, if you try to favourite a MB pipeline (vs a specific branch) it does incorrect things. It should work out what the default branch is (or ask user) or at least tell them to pick a branch... (latter is easiest).

            +Steps:+
            # Click "New Item" and Create "Multibranch Pipeline" without branch "master".
            # Open Dashboard Jenkins. Check "Favorite" button for Multibranch Pipeline.
            # Open Jenkins Blue Ocean.
            *Actual Result:* New line for this job has been created in "Favorites" (grey colour). "Run" button hasn't worked.
            # Open Dashboard Jenkins -> this Multibranch Pipeline. Check "Favorite" button for any branch.
            *E.R. = A.R.:* No error. Favorites Job have displayed correctly in Jenkins Blue Ocean.
            # Disable "Favorite" for this job.
            # Open Jenkins Blue Ocean.
            # Click "Favorite" button for Multibranch Pipeline.
            *Expected Result:* Favorite label has been added. New line for this job has been created in "Favorites".
            *Actual Result:* Failed to load resource: the server responded with a status of 400 (Bad Request)
            {noformat}
            {
                "message" : "no master branch to favorite",
                "code" : 400,
                "errors" : [ ]
            }
            {noformat}
            # Disable "Favorite" for this job.
            *Expected Result:* Favorite label has been deleted.
            *Actual Result:* TypeError: undefined is not an object (evaluating 'favoriteToRemove._links')
            michaelneale Michael Neale made changes -
            Link This issue relates to JENKINS-39087 [ JENKINS-39087 ]
            jamesdumay James Dumay made changes -
            Sprint indian [ 126 ] arctic [ 131 ]
            jamesdumay James Dumay made changes -
            Sprint arctic [ 131 ] arctic 2 [ 136 ]
            jamesdumay James Dumay made changes -
            Sprint arctic 2 [ 136 ] arctic [ 131 ]
            jamesdumay James Dumay made changes -
            Sprint arctic [ 131 ] arctic 2 [ 136 ]
            jamesdumay James Dumay made changes -
            Sprint tasman [ 136 ] tasman 2 [ 141 ]
            jamesdumay James Dumay made changes -
            Sprint tasman 2 [ 141 ]
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            michaelneale Michael Neale made changes -
            Description Summary: if there is no master branch, if you try to favourite a MB pipeline (vs a specific branch) it does incorrect things. It should work out what the default branch is (or ask user) or at least tell them to pick a branch... (latter is easiest).

            +Steps:+
            # Click "New Item" and Create "Multibranch Pipeline" without branch "master".
            # Open Dashboard Jenkins. Check "Favorite" button for Multibranch Pipeline.
            # Open Jenkins Blue Ocean.
            *Actual Result:* New line for this job has been created in "Favorites" (grey colour). "Run" button hasn't worked.
            # Open Dashboard Jenkins -> this Multibranch Pipeline. Check "Favorite" button for any branch.
            *E.R. = A.R.:* No error. Favorites Job have displayed correctly in Jenkins Blue Ocean.
            # Disable "Favorite" for this job.
            # Open Jenkins Blue Ocean.
            # Click "Favorite" button for Multibranch Pipeline.
            *Expected Result:* Favorite label has been added. New line for this job has been created in "Favorites".
            *Actual Result:* Failed to load resource: the server responded with a status of 400 (Bad Request)
            {noformat}
            {
                "message" : "no master branch to favorite",
                "code" : 400,
                "errors" : [ ]
            }
            {noformat}
            # Disable "Favorite" for this job.
            *Expected Result:* Favorite label has been deleted.
            *Actual Result:* TypeError: undefined is not an object (evaluating 'favoriteToRemove._links')
            Summary: if there is no master branch, if you try to favourite a MB pipeline (vs a specific branch) it does incorrect things. It should work out what the default branch is (or ask user) or at least tell them to pick a branch... (latter is easiest).

            If a user has favourited a MB pipeline *folder* in classic, blue ocean should ignore that.

            ----

            +Steps:+
            # Click "New Item" and Create "Multibranch Pipeline" without branch "master".
            # Open Dashboard Jenkins. Check "Favorite" button for Multibranch Pipeline.
            # Open Jenkins Blue Ocean.
            *Actual Result:* New line for this job has been created in "Favorites" (grey colour). "Run" button hasn't worked.
            # Open Dashboard Jenkins -> this Multibranch Pipeline. Check "Favorite" button for any branch.
            *E.R. = A.R.:* No error. Favorites Job have displayed correctly in Jenkins Blue Ocean.
            # Disable "Favorite" for this job.
            # Open Jenkins Blue Ocean.
            # Click "Favorite" button for Multibranch Pipeline.
            *Expected Result:* Favorite label has been added. New line for this job has been created in "Favorites".
            *Actual Result:* Failed to load resource: the server responded with a status of 400 (Bad Request)
            {noformat}
            {
                "message" : "no master branch to favorite",
                "code" : 400,
                "errors" : [ ]
            }
            {noformat}
            # Disable "Favorite" for this job.
            *Expected Result:* Favorite label has been deleted.
            *Actual Result:* TypeError: undefined is not an object (evaluating 'favoriteToRemove._links')
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Assignee Cliff Meyers [ cliffmeyers ]
            jamesdumay James Dumay made changes -
            Link This issue duplicates JENKINS-38718 [ JENKINS-38718 ]
            jamesdumay James Dumay made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]
            jbriden Jenn Briden made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              Unassigned Unassigned
              ks_nenasheva Kseniia Nenasheva
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: