-
Bug
-
Resolution: Duplicate
-
Minor
-
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)
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){ "message" : "no master branch to favorite", "code" : 400, "errors" : [ ] }
- Disable "Favorite" for this job.
Expected Result: Favorite label has been deleted.
Actual Result: TypeError: undefined is not an object (evaluating 'favoriteToRemove._links')
- duplicates
-
JENKINS-38718 Add an extension point so github et al can expose their default branches via scm api
-
- Resolved
-
- is blocked by
-
JENKINS-39082 Record the "default branch" of the Github repository
-
- Closed
-
-
JENKINS-39083 Record the "default branch" of the Bitbucket repository
-
- Closed
-
- relates to
-
JENKINS-39087 Add ability to mark a multibranch pipeline as a favourite - NOT a branch
-
- Resolved
-
I did some minor investigation on this one.
The implementation looks explicitly for the job named master in the Multibranch project, and that is the job marked as favorite, by default. Therefore, you'll need to have a job called master for this to work.
For example, you can point your Multibranch project to this repository: https://github.com/jenkinsci/git-plugin, and the branch indexing will automatically create the master job, and then the favorite feature should work.