[JIRA] [core] (JENKINS-8927) Create a view from the XML API

2015-01-23 Thread lukasz.t...@gmail.com (JIRA)














































Lukasz Tasz
 commented on  JENKINS-8927


Create a view from the XML API















this solution works pretty well with few limitation:

	nestedView plugin does not register it's own class and curl end with exception that NestedView is not resolved.
	in case of subviews, xml needs to be extended with  node, unfortunately in case of coping view a to b, parent node is not visible.





























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [core] (JENKINS-8927) Create a view from the XML API

2014-05-21 Thread dan...@beckweb.net (JIRA)














































Daniel Beck
 commented on  JENKINS-8927


Create a view from the XML API















Oleg: Needs to be documented on the /view/Foo/api page, similar to 'Create Job' on /api.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [core] (JENKINS-8927) Create a view from the XML API

2014-05-20 Thread o.v.nenas...@gmail.com (JIRA)














































Oleg Nenashev
 commented on  JENKINS-8927


Create a view from the XML API















@Patrik
Should we consider the issue as "Resolved"?



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [core] (JENKINS-8927) Create a view from the XML API

2014-02-10 Thread pat...@diabol.se (JIRA)












































  
Patrik Boström
 edited a comment on  JENKINS-8927


Create a view from the XML API
















Found this by looking through the source code:
It is possible in Jenkins 1.509.4 to create views via the REST api

view.xml:

"1.0" encoding="UTF-8"?>

MyView
false
false
"hudson.model.View$PropertyList"/>

"hudson.util.CaseInsensitiveComparator"/>












 


Create the view:

curl -vvv -X POST -d @view.xml -H "Content-Type: text/xml" http://localhost:8080/jenkins/createView?name=MyView



Get the configuration:

curl http://localhost:8080/jenkins/view/MyView/config.xml



Update the view:

curl -X POST -d @view.xml -H "Content-Type: text/xml" http://localhost:8080/jenkins/view/MyView/config.xml





























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [core] (JENKINS-8927) Create a view from the XML API

2014-02-10 Thread pat...@diabol.se (JIRA)












































  
Patrik Boström
 edited a comment on  JENKINS-8927


Create a view from the XML API
















Found this by looking through the source code:
It is possible in Jenkins 1.509.4 to create views via the REST api

view.xml:

"1.0" encoding="UTF-8"?>

Hej
false
false
"hudson.model.View$PropertyList"/>

"hudson.util.CaseInsensitiveComparator"/>












 


Create the view:

curl -vvv -X POST -d @view.xml -H "Content-Type: text/xml" http://localhost:8080/jenkins/createView?name=Pipe2



Get the configuration:

curl http://localhost:8080/jenkins/view/Pipe1/config.xml



Update the view:

curl -X POST -d @view.xml -H "Content-Type: text/xml" http://localhost:8080/jenkins/view/Pipe1/config.xml





























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [core] (JENKINS-8927) Create a view from the XML API

2014-02-10 Thread pat...@diabol.se (JIRA)














































Patrik Boström
 commented on  JENKINS-8927


Create a view from the XML API















Found this by looking through the source code:
It is possible in Jenkins 1.509.4 to create views via the REST api

view.xml:

"1.0" encoding="UTF-8"?>

Hej
false
false
"hudson.model.View$PropertyList"/>

"hudson.util.CaseInsensitiveComparator"/>












 


Create the view:

curl -vvv -X POST -d @pipe.xml -H "Content-Type: text/xml" http://localhost:8080/jenkins/createView?name=Pipe2



Get the configuration:

curl http://localhost:8080/jenkins/view/Pipe1/config.xml



Update the view:

curl -X POST -d @pipe.xml -H "Content-Type: text/xml" http://localhost:8080/jenkins/view/Pipe1/config.xml





























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.