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

Make "create-view" accept a path (for nested views)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None
    • Jenkins 2.263.4
      Running on Linux, no container
      Using (openJDK) JDK11
      Using (up to date) "Nested View Plugin" 1.19

      I would like to copy an existing view (which is a nested view).

      I can do this:

      1. >alias jenkinsSSH='ssh foo42 -p 4242'
      2. this needs to match the actual hostname/ssh port and assumes login by public key from the used account.
      3. Create the type of view, you want to copy there. at the planned position in Jekins GUI with the intended name
        (This seems easier, than doing it by script...)
      4. Copy the xml for an existing view, to the newly generated one.
        E.g.
        > jenkinsSSH get-view "21A_0.1mMP-Prom" | jenkinsSSH update-view "PHY_FB/FOOBAR"
        Note: No ...view/PHY_FB/view/FOOBAR" ! (as seen in the URL)

       

      But doing it directly fails:

      > jenkinsSSH get-view "21A_0.1mMP-Prom" | jenkinsSSH create-view "PHY_FB/FOOBAR2"
      ERROR: Invalid view name: ‘/’ is an unsafe character

      I would like to see "create-view" accept nested views, like 'update-view' does.

            Unassigned Unassigned
            martinjost Martin Jost
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: