You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-13978] Add posibility to copy view #12734
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
I found a solution (basically a colleague knew the trick): (tried on 2.263.4):
alias jenkinsSSH='ssh foobar42 -p 4242'
this needs to match the actual hostname/ssh port and assumes login by public key from the used account.
So the trick is:
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...)
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'
this needs to match the actual hostname/ssh port and assumes login by public key from the used account.
So the trick is:
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...)
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 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.
Activity
jenkins-infra-bot commentedon May 31, 2012
Remote link associated with this issue:
jenkins-infra-bot commentedon Jan 22, 2013
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. . .
jenkins-infra-bot commentedon Feb 8, 2013
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).
jenkins-infra-bot commentedon Nov 18, 2013
Raw content of original comment:
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
jenkins-infra-bot commentedon Nov 18, 2013
Raw content of original comment:
Integrated in
jenkins_main_trunk #3059
JENKINS-13978 option to copy a view (Revision 1067585)
Result = UNSTABLE
Nicolas De Loof : 1067585a49517414398b3becbebed09abf496761
Files :
jenkins-infra-bot commentedon Dec 3, 2013
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
jenkins-infra-bot commentedon Dec 5, 2013
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.
jenkins-infra-bot commentedon Jan 7, 2014
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.
jenkins-infra-bot commentedon Feb 7, 2014
Raw content of original comment:
Is this in, i would VERY much like to see this introduced.
jenkins-infra-bot commentedon Nov 12, 2014
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.
jenkins-infra-bot commentedon May 18, 2015
mambu:
Raw content of original comment:
Does anyone know the status of this change?
jenkins-infra-bot commentedon Nov 15, 2017
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.
jenkins-infra-bot commentedon Apr 27, 2021
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'
So the trick is:
(This seems easier, than doing it by script...)
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)
jenkins-infra-bot commentedon Mar 5, 2024
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.
jenkins-infra-bot commentedon Mar 5, 2024
Raw content of original comment:
Isn't this feature already available via JCasC now?
jenkins-infra-bot commentedon Nov 24, 2025
[Original
is_duplicated_byfrom Jira: JENKINS-12212]jenkins-infra-bot commentedon Nov 24, 2025
[Original
relates_tofrom Jira: JENKINS-16709]