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

User can click "Create Pipeline" and open the creation flow process

    • Icon: Story Story
    • Resolution: Fixed
    • Icon: Major Major
    • blueocean-plugin
    • None
    • atlantic, indian

      In Scope

      • Blank dialog with "Create Pipeline" in header
      • Creation flow goes into its own plugin "blueocean-pipeline-creation-plugin" Per subsequent discussion in 11 Oct retro, this will be put in "blueocean-dashboard"

          [JENKINS-38594] User can click "Create Pipeline" and open the creation flow process

          Michael Neale added a comment -

          requires a dialog component for this (same as editor)

          Michael Neale added a comment - requires a dialog component for this (same as editor)

          Cliff Meyers added a comment -

          michaelneale what permission should be used to control availability of the "Create Pipeline" button? I know there is a "create" permission available within each pipeline, although we can't really rely on that in the "first use" scenario (when there are no pipelines available in Jenkins).

          Cliff Meyers added a comment - michaelneale what permission should be used to control availability of the "Create Pipeline" button? I know there is a "create" permission available within each pipeline, although we can't really rely on that in the "first use" scenario (when there are no pipelines available in Jenkins).

          Brody Maclean added a comment -

          Brody Maclean added a comment - Link to James' Sketch file. https://www.dropbox.com/s/9tacojva7b2n9du/blueocean.sketch?dl=0

          Michael Neale added a comment - - edited

          cliffmeyers well per pipeline permissions won't work here as we are creating a new pipeline. I would say for starters as long as they aren't read only we can at least offer to let them try to create a pipeline. If the permissions are more fine grained than we realise at the backend, we will see errors, and can adjust course

          vivek do you know of any existing permissions in jenkins, perhaps that blue ocean already exposes via the API, that could be used to decide if the create pipeline link should be shown or not?

          Michael Neale added a comment - - edited cliffmeyers well per pipeline permissions won't work here as we are creating a new pipeline. I would say for starters as long as they aren't read only we can at least offer to let them try to create a pipeline. If the permissions are more fine grained than we realise at the backend, we will see errors, and can adjust course vivek do you know of any existing permissions in jenkins, perhaps that blue ocean already exposes via the API, that could be used to decide if the create pipeline link should be shown or not?

          Vivek Pandey added a comment -

          michaelneale Nothing that serves permission outside of pipeline api. Backend can check if user has create permission (anonymous or logged in).

          Vivek Pandey added a comment - michaelneale Nothing that serves permission outside of pipeline api. Backend can check if user has create permission (anonymous or logged in).

          Michael Neale added a comment -

          As discussed - we want the inverse of the logic that decides if the login button should be shown. If the login button is shown then create should not be shown. If the login is not shown, the create should be shown.

          Michael Neale added a comment - As discussed - we want the inverse of the logic that decides if the login button should be shown. If the login button is shown then create should not be shown. If the login is not shown, the create should be shown.

          Cliff Meyers added a comment -

          Cliff Meyers added a comment - PR: https://github.com/jenkinsci/blueocean-plugin/pull/567

            cliffmeyers Cliff Meyers
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: