• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • favorite-plugin
    • None
    • Jenkins 2.46.3
      Favorite plug-in 2.0.4
    •  2.200.v215a_b_a_033a_fe

      For pipeline jobs there is no "star" icon to mark the job as favourite. Neither in the side bar, in the drop down list, or the favourites column.

      Manually adding the job as a favourite by calling

      https://server/plugin/favorite/toggleFavorite?job=jobname&userName=user&redirect=true

      works as expected (the job will then be listed as a favourite on the user configuration page and will be shown in views that filter favourite jobs).

      FreeStyle jobs show the "star" as expected.

          [JENKINS-44642] Unable to mark pipeline jobs as favourite

          James Dumay added a comment -

          gordin I had a quick look here and you can favorite Multibranch Pipelines but not Multibranch pipelines that are within Organization Folders. Is that the scenario you see here?

          James Dumay added a comment - gordin I had a quick look here and you can favorite Multibranch Pipelines but not Multibranch pipelines that are within Organization Folders. Is that the scenario you see here?

          I'm not using Multibranch Pipelines, just the "normal" Pipeline. I do use the "Folders" plug-in, but I cannot mark a pipeline job as favourite regardless whether the job is inside a folder or at top level.

          I just noticed that it is not possible for me to mark a build (any type) in the "Fav" column of the view. Only by selecting the job and using the link in the left side bar (don't know if this is provided by another plug-in). Are there any special rights needed? If so, I'm not able to find the needed settings.

          Christoph Vogtländer added a comment - I'm not using Multibranch Pipelines, just the "normal" Pipeline. I do use the "Folders" plug-in, but I cannot mark a pipeline job as favourite regardless whether the job is inside a folder or at top level. I just noticed that it is not possible for me to mark a build (any type) in the "Fav" column of the view. Only by selecting the job and using the link in the left side bar (don't know if this is provided by another plug-in). Are there any special rights needed? If so, I'm not able to find the needed settings.

          Could the cause be (unescaped) slashes in the job names? I'm seeing this stack trace in my log:

          WARNING: Error while serving http://buildserver/plugin/favorite/toggleFavorite
          java.lang.reflect.InvocationTargetException
              ...
          Caused by: java.lang.IllegalArgumentException: Item <parent-job/git-branch-name> does not exist
              at hudson.plugins.favorite.FavoritePlugin.getItem(FavoritePlugin.java:71)
              at hudson.plugins.favorite.FavoritePlugin.doToggleFavorite(FavoritePlugin.java:29)
              at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
              at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
              ... 90 more
          

          David Pärsson added a comment - Could the cause be (unescaped) slashes in the job names? I'm seeing this stack trace in my log: WARNING: Error while serving http: //buildserver/plugin/favorite/toggleFavorite java.lang.reflect.InvocationTargetException ... Caused by: java.lang.IllegalArgumentException: Item <parent-job/git-branch-name> does not exist   at hudson.plugins.favorite.FavoritePlugin.getItem(FavoritePlugin.java:71) at hudson.plugins.favorite.FavoritePlugin.doToggleFavorite(FavoritePlugin.java:29) at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343) ... 90 more

            mawinter69 Markus Winter
            gordin Christoph Vogtländer
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: