Skip to content

[JENKINS-13978] Add posibility to copy view #12734

Open

Description

@jenkins-infra-bot

When creating a new view, there could be an option to copy already existing view - the same way it is when new project is created.


Originally reported by pessoft, imported from: Add posibility to copy view
  • status: Open
  • priority: Minor
  • component(s): core
  • resolution: Unresolved
  • votes: 31
  • watchers: 32
  • imported: 2025-11-24
Raw content of original issue

When creating a new view, there could be an option to copy already existing view - the same way it is when new project is created.

Activity

  1. jenkins-infra-bot commented on May 31, 2012

    @jenkins-infra-bot
    Author
  2. jenkins-infra-bot commented on Jan 22, 2013

    @jenkins-infra-bot
    Author
    derek_brown:
    • Original comment link
    • Raw content of original comment:

      I would use this feature every time I branch my projects. I would be using it today if it existed. Derek. . .

    I would use this feature every time I branch my projects. I would be using it today if it existed.
    Derek. . .

  3. jenkins-infra-bot commented on Feb 8, 2013

    @jenkins-infra-bot
    Author
    nickboldt:
    • Original comment link
    • Raw content of original comment:

      Same here. This would be incredibly handy for spawning new views to track new branches (and the accompanying jobs for that new branches).

    Same here. This would be incredibly handy for spawning new views to track new branches (and the accompanying jobs for that new branches).

  4. jenkins-infra-bot commented on Nov 18, 2013

    @jenkins-infra-bot
    Author
    scm_issue_link:

    Code changed in jenkins
    User: Nicolas De Loof
    Path:
    changelog.html
    core/src/main/java/hudson/model/View.java
    core/src/main/resources/jenkins/model/Jenkins/newView.jelly
    http://jenkins-ci.org/commit/jenkins/1067585a49517414398b3becbebed09abf496761
    Log:
    JENKINS-13978 option to copy a view

  5. jenkins-infra-bot commented on Nov 18, 2013

    @jenkins-infra-bot
    Author
    dogfood:

    Integrated in jenkins_main_trunk #3059
    JENKINS-13978 option to copy a view (Revision 1067585)

    Result = UNSTABLE
    Nicolas De Loof : 1067585a49517414398b3becbebed09abf496761
    Files :

    • changelog.html
    • core/src/main/java/hudson/model/View.java
    • core/src/main/resources/jenkins/model/Jenkins/newView.jelly
  6. jenkins-infra-bot commented on Dec 3, 2013

    @jenkins-infra-bot
    Author
    axelbehrens:
    • Original comment link
    • Raw content of original comment:

      Just upgraded to 1.542 but I don't see the option to copy an existing view on the /newView page. I can give a name and choose from 'Dashboard', 'List View' and 'My View', as before. Having it in the changelog suggests that it should work already, although this issue is still open... Axel

    Just upgraded to 1.542 but I don't see the option to copy an existing view on the /newView page. I can give a name and choose from 'Dashboard', 'List View' and 'My View', as before.
    Having it in the changelog suggests that it should work already, although this issue is still open...
    Axel

  7. jenkins-infra-bot commented on Dec 5, 2013

    @jenkins-infra-bot
    Author
    kerrhome:
    • Original comment link
    • Raw content of original comment:

      I can confirm that this does not appear to be implemented. I am also on 1.542 and do not see this functionality.

    I can confirm that this does not appear to be implemented. I am also on 1.542 and do not see this functionality.

  8. jenkins-infra-bot commented on Jan 7, 2014

    @jenkins-infra-bot
    Author
    epkabeg:
    • Original comment link
    • Raw content of original comment:

      I can confirm too. I see no trace of this functionality after upgrading to 1.546.

      Was really looking forward to this one.

    I can confirm too. I see no trace of this functionality after upgrading to 1.546.

    Was really looking forward to this one.

  9. jenkins-infra-bot commented on Feb 7, 2014

    @jenkins-infra-bot
    Author
    madsnielsen:
    • Original comment link
    • Raw content of original comment:

      Is this in, i would VERY much like to see this introduced.

    Is this in, i would VERY much like to see this introduced.

  10. jenkins-infra-bot commented on Nov 12, 2014

    @jenkins-infra-bot
    Author
    drulli:
    • Original comment link
    • Raw content of original comment:

      Wouldn't it be more comfortable if this would be exposed as an action on the view itself? I.e., have a context menu "Copy" for each view.

    Wouldn't it be more comfortable if this would be exposed as an action on the view itself? I.e., have a context menu "Copy" for each view.

  11. jenkins-infra-bot commented on May 18, 2015

    @jenkins-infra-bot
    Author
    mambu:
    • Original comment link
    • Raw content of original comment:

      Does anyone know the status of this change?

    Does anyone know the status of this change?

  12. jenkins-infra-bot commented on Nov 15, 2017

    @jenkins-infra-bot
    Author
    krulls:
    • Original comment link
    • Raw content of original comment:

      There is a plugin offering a build step, I did not try it.

      I would appreciate if cloning / copying a view would be supported by the API.

    There is a plugin offering a build step, I did not try it.

    I would appreciate if cloning / copying a view would be supported by the API.

  13. jenkins-infra-bot commented on Apr 27, 2021

    @jenkins-infra-bot
    Author
    martinjost:
    • Original comment link
    • Raw content of original comment:

      I found a solution (basically a colleague knew the trick): (tried on 2.263.4):

      alias jenkinsSSH='ssh foobar42 -p 4242'

      1. this needs to match the actual hostname/ssh port and assumes login by public key from the used account.

      So the trick is:

      1. Create the type of view , you plan to copy, at the planned position in Jekins GUI with the intended name (This seems easier, than doing it by script...)
      2. 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)

    I found a solution (basically a colleague knew the trick): (tried on 2.263.4):

    alias jenkinsSSH='ssh foobar42 -p 4242'

    1. this needs to match the actual hostname/ssh port and assumes login by public key from the used account.

    So the trick is:

    1. Create the type of view , you plan to copy, at the planned position in Jekins GUI with the intended name
      (This seems easier, than doing it by script...)
    2. 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)
  14. jenkins-infra-bot commented on Mar 5, 2024

    @jenkins-infra-bot
    Author
    nux:
    • Original comment link
    • Raw content of original comment:

      I think an important aspect is copying columns. I have custom columns in each view and there is no way to copy columns between views.

      If views would have a separate configs (separate xml files) then I would be able to at least easily copy by hand. Currently it requires editing a huge config xml just to clone the configuration of columns.

    I think an important aspect is copying columns. I have custom columns in each view and there is no way to copy columns between views.

    If views would have a separate configs (separate xml files) then I would be able to at least easily copy by hand. Currently it requires editing a huge config xml just to clone the configuration of columns.

  15. jenkins-infra-bot commented on Mar 5, 2024

    @jenkins-infra-bot
    Author
    drulli:
    • Original comment link
    • Raw content of original comment:

      Isn't this feature already available via JCasC now?

    Isn't this feature already available via JCasC now?

  16. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original is_duplicated_by from Jira: JENKINS-12212]

  17. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original relates_to from Jira: JENKINS-16709]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions