FW: How can I create a view through XML?

2014-08-08 Thread XuLj
Does anyone know how to solve this problem?

From: icbcsdcpmox...@outlook.com
To: jenkinsci-dev@googlegroups.com
Subject: How can I create a view through XML?
Date: Wed, 6 Aug 2014 01:32:22 +




Hello, I'd like to create a view by calling method "createViewFromXML(String 
name, InputStream xml)" in the View class. How can I achieve that?
It appears that each time I pass a StringInputStream object to this method, it 
throws an "Unable to read" exception.
My test code is as follows:
String xml = "  
   "+ " "   
+ "  1 
"   + "  
false   
"   + "  false   
"   + " 
  
  " + "  
"   + " 
   
"   + "  "   
+ "  1 
"   + "  
false   "
   + "  false
   "   + "  
   "  
   + "  
1   "
   + " 
   "   + "  
false "
   + "  
true  "
   + "  
true  "
   + "  3  
   "   + "  
false "
   + "  
false "
   + "
   "  
 + "
 "   + "  
  
"   + "   
"   + " 
  
"   + "
";  InputStream xx=new 
StringInputStream(xml, "utf-8"); try {  
 View.createViewFromXML("aa", xx);   } catch (IOException e) {  
 // TODO Auto-generated catch block  
e.printStackTrace();}


  

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


How can I create a view through XML?

2014-08-05 Thread XuLj
Hello, I'd like to create a view by calling method "createViewFromXML(String 
name, InputStream xml)" in the View class. How can I achieve that?
It appears that each time I pass a StringInputStream object to this method, it 
throws an "Unable to read" exception.
My test code is as follows:
String xml = "  
   "+ " "   
+ "  1 
"   + "  
false   
"   + "  false   
"   + " 
  
  " + "  
"   + " 
   
"   + "  "   
+ "  1 
"   + "  
false   "
   + "  false
   "   + "  
   "  
   + "  
1   "
   + " 
   "   + "  
false "
   + "  
true  "
   + "  
true  "
   + "  3  
   "   + "  
false "
   + "  
false "
   + "
   "  
 + "
 "   + "  
  
"   + "   
"   + " 
  
"   + "
";  InputStream xx=new 
StringInputStream(xml, "utf-8"); try {  
 View.createViewFromXML("aa", xx);   } catch (IOException e) {  
 // TODO Auto-generated catch block  
e.printStackTrace();}

  

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


RE: Hi, I want to host my plugins

2014-08-03 Thread XuLj
Thanks for u r reply. I've already seen it. But my colleagues said it was a 
little complicated to write DSLs, especially testers. They prefer a simpler 
one. Besides, the naming of jobs in my company has some special constraints. So 
I developed this one, hoping that it would be useful for others in a similar 
situation. 
Best regards,
   Xu Lijia

Date: Sat, 2 Aug 2014 02:52:45 -0700
From: christian.galste...@gmx.de
To: jenkinsci-dev@googlegroups.com
Subject: Re: Hi, I want to host my plugins

Hi,
did you had a look at the Job DSL plugin? It already provides support to build 
complete build pipelines using templates.
BrChristian

On Tuesday, July 22, 2014 11:43:07 PM UTC+2, Ullrich Hafner wrote:You can 
deploy jar artifacts to our maven repository. (Or you create a git submodule 
that references the library.)
Am 22.07.2014 um 10:46 schrieb XuLj :



Hello,
  Thanks for u r reply. I just checked the code. At present time, it definitely 
has a hard code calling a lib "ci-statisticscollector-gr" at the last step of 
my 
plugin, and it is used to collect user data from users in my organization, and 
the IP is an intranet 
address(which cannot be accessed directly from the Internet. Because I need to 
know whether users in my organization have used it or not). It doesn't have any 
other purpose. 
I'm sorry to say I forgot to remove these codes before I made it public. And 
I'll deal with it ASAP. 
Would that be OK?
 
In addition, it calls a jar "jt.jar", which can be 
compiled from "ct-jobflowcreator-gr" project at my github. But I dunno where to 
host .hpi and .jar files. Will u please tell me?
Lastly, what do u think is the proper name of my plugin according to my 
explanation? Your advice would be much appreciated. 

Best regards,
   Xu Lijia


From: ullrich...@gmail.com
Subject: Re: Hi, I want to host my plugins
Date: Tue, 22 Jul 2014 10:09:01 +0200
To: jenkin...@googlegroups.com

Seems that your source has a hard-coded dependeny to an IP address and a jar 
file in Jenkins root folder. How can other users use your plug-in? What would 
be an appropriate name of your plugin?
Am 22.07.2014 um 03:53 schrieb XuLj :






Hello,In actuality,  I've already told u the function  of my plugin.my 
plugins is hosted at https://github.com/icbcsdcpmoxulj/pi-jobflowcreator
"pi" is just a tag that reminds me of what my projects mean, as I've developed 
a couple of Jenkins-related tools, plugins, libraries, etc.,  which are being 
used in my organisation. Likewise, there are some other projects that begin 
with "ct" and "ci". "ct" means "continuous integration tools"; "ci" means 
"continuous integration libs".
As for the plugin I want to host, it provides the functionality of creating a 
complete job flow based on a given one, as I've mentioned in my last letter. 
By that I mean,if I have some jobs that are downstream jobs, like A_201301  ->  
B_201301 -> C_201301 , forming a "job flow",next time when I need to create 
jobs like A_201401, B_201401 , C_201401,I have to create them one by one 
manually and modify their correlation through JENKINS UI, which is laborious. 
Therefore, my plugin is able to create A_201401, B_201401 , C_201401 at a time, 
and maintain their relations.
I think that pretty much sums up my plugin. 

Best regards,

Xu Lijia

From: ullrich...@gmail.com
Subject: Re: Hi, I want to host my plugins
Date: Mon, 21 Jul 2014 20:58:45 +0200
To: jenkin...@googlegroups.com

Is your plugin already hosted on GitHub?
Can you please describe briefly what the plugin does? Is pi a product? 
Am 21.07.2014 um 05:07 schrieb xulj :



Hi,I'd like to add some plugins that I have developed to Jenkins community. 
And the information I should provide according to your requirement is as 
follows:my plugin name is "pi-jobflowcreator", which provides the functionality 
of creatinga complete job flow based on a given one. my personal GitHub ID: 
icbcsdcpmoxulj
Is the info enough?
And I guess it could be useful for others. And I've already used it to my 
advantage.

Best wishes 
   Xu Lijia   


-- 

You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-de...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



  


-- 

You received this message because you are subscribed to the Google Grou

RE: Hi, I want to host my plugins

2014-07-22 Thread XuLj
Hello,
  Thanks for u r reply. I just checked the code. At present time, it definitely 
has a hard code calling a lib "ci-statisticscollector-gr" at the last step of 
my 
plugin, and it is used to collect user data from users in my organization, and 
the IP is an intranet 
address(which cannot be accessed directly from the Internet. Because I need to 
know whether users in my organization have used it or not). It doesn't have any 
other purpose. 
I'm sorry to say I forgot to remove these codes before I made it public. And 
I'll deal with it ASAP. 
Would that be OK?
 
In addition, it calls a jar "jt.jar", which can be 
compiled from "ct-jobflowcreator-gr" project at my github. But I dunno where to 
host .hpi and .jar files. Will u please tell me?
Lastly, what do u think is the proper name of my plugin according to my 
explanation? Your advice would be much appreciated. 

Best regards,
   Xu Lijia


From: ullrich.haf...@gmail.com
Subject: Re: Hi, I want to host my plugins
Date: Tue, 22 Jul 2014 10:09:01 +0200
To: jenkinsci-dev@googlegroups.com

Seems that your source has a hard-coded dependeny to an IP address and a jar 
file in Jenkins root folder. How can other users use your plug-in? What would 
be an appropriate name of your plugin?
Am 22.07.2014 um 03:53 schrieb XuLj :





Hello,In actuality,  I've already told u the function  of my plugin.my 
plugins is hosted at https://github.com/icbcsdcpmoxulj/pi-jobflowcreator
"pi" is just a tag that reminds me of what my projects mean, as I've developed 
a couple of Jenkins-related tools, plugins, libraries, etc.,  which are being 
used in my organisation. Likewise, there are some other projects that begin 
with "ct" and "ci". "ct" means "continuous integration tools"; "ci" means 
"continuous integration libs".
As for the plugin I want to host, it provides the functionality of creating a 
complete job flow based on a given one, as I've mentioned in my last letter. 
By that I mean,if I have some jobs that are downstream jobs, like A_201301  ->  
B_201301 -> C_201301 , forming a "job flow",next time when I need to create 
jobs like A_201401, B_201401 , C_201401,I have to create them one by one 
manually and modify their correlation through JENKINS UI, which is laborious. 
Therefore, my plugin is able to create A_201401, B_201401 , C_201401 at a time, 
and maintain their relations.
I think that pretty much sums up my plugin. 

Best regards,

Xu Lijia

From: ullrich.haf...@gmail.com
Subject: Re: Hi, I want to host my plugins
Date: Mon, 21 Jul 2014 20:58:45 +0200
To: jenkinsci-dev@googlegroups.com

Is your plugin already hosted on GitHub?
Can you please describe briefly what the plugin does? Is pi a product? 
Am 21.07.2014 um 05:07 schrieb xulj :


Hi,I'd like to add some plugins that I have developed to Jenkins community. 
And the information I should provide according to your requirement is as 
follows:my plugin name is "pi-jobflowcreator", which provides the functionality 
of creatinga complete job flow based on a given one. my personal GitHub ID: 
icbcsdcpmoxulj
Is the info enough?
And I guess it could be useful for others. And I've already used it to my 
advantage.

Best wishes 
   Xu Lijia   

-- 

You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



  

-- 

You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


  

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


RE: Hi, I want to host my plugins

2014-07-21 Thread XuLj



Hello,In actuality,  I've already told u the function  of my plugin.my 
plugins is hosted at https://github.com/icbcsdcpmoxulj/pi-jobflowcreator
"pi" is just a tag that reminds me of what my projects mean, as I've developed 
a couple of Jenkins-related tools, plugins, libraries, etc.,  which are being 
used in my organisation. Likewise, there are some other projects that begin 
with "ct" and "ci". "ct" means "continuous integration tools"; "ci" means 
"continuous integration libs".
As for the plugin I want to host, it provides the functionality of creating a 
complete job flow based on a given one, as I've mentioned in my last letter. 
By that I mean,if I have some jobs that are downstream jobs, like A_201301  ->  
B_201301 -> C_201301 , forming a "job flow",next time when I need to create 
jobs like A_201401, B_201401 , C_201401,I have to create them one by one 
manually and modify their correlation through JENKINS UI, which is laborious. 
Therefore, my plugin is able to create A_201401, B_201401 , C_201401 at a time, 
and maintain their relations.
I think that pretty much sums up my plugin. 

Best regards,

Xu Lijia

From: ullrich.haf...@gmail.com
Subject: Re: Hi, I want to host my plugins
Date: Mon, 21 Jul 2014 20:58:45 +0200
To: jenkinsci-dev@googlegroups.com

Is your plugin already hosted on GitHub?
Can you please describe briefly what the plugin does? Is pi a product? 
Am 21.07.2014 um 05:07 schrieb xulj :


Hi,I'd like to add some plugins that I have developed to Jenkins community. 
And the information I should provide according to your requirement is as 
follows:my plugin name is "pi-jobflowcreator", which provides the functionality 
of creatinga complete job flow based on a given one. my personal GitHub ID: 
icbcsdcpmoxulj
Is the info enough?
And I guess it could be useful for others. And I've already used it to my 
advantage.

Best wishes 
   Xu Lijia   

-- 

You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



  

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


Hi, I want to host my plugins

2014-07-20 Thread xulj
Hi,I'd like to add some plugins that I have developed to Jenkins community. 
And the information I should provide according to your requirement is as 
follows:my plugin name is "pi-jobflowcreator", which provides the functionality 
of creatinga complete job flow based on a given one. my personal GitHub ID: 
icbcsdcpmoxulj
Is the info enough?
And I guess it could be useful for others. And I've already used it to my 
advantage.

Best wishes 
   Xu Lijia   

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