Quantcast

Collapsing Console Section

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Collapsing Console Section

sandy-2
Hi

I'm using Jenkins 1.483 on my Linux box. I have a query regarding the Collapsing console section.

My build scripts generates some echo statements like "BEGIN BUILD COMPONENT1" , "END BUILD COMPONENT1", "BEGIN BUILD COMPONENT2" , "END BUILD COMPONENT2", "BEGIN TEST COMPONENT1", etc..

I want to have a generic console section which covers all the above. So, I created a console section with:

Section Name: Build
Section Starts With: ^BEGIN.*
Section Ends With: ^END.*

This works, but I need to have the section name contains the values captured by the regular expression. How can I do it? I tried using {1}, {2}.. but those does not work. I want to have separate sections for individual components. Do I have to write my own plugin?

Thanks.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: Collapsing Console Section

Mandeville, Rob

I’ve got the same problem, with no good solution.  In my case, some of these steps are inside of other steps, so I can be more than one “BEGIN” deep.  As far as I can tell, the only way to handle this is to write up each possible begin/end pair separately.  That was too ugly for me to pursue, and it only works if you know all the possible components in advance.

 

--Rob

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of sandy
Sent: Wednesday, October 17, 2012 2:41 AM
To: [hidden email]
Subject: Collapsing Console Section

 

Hi

I'm using Jenkins 1.483 on my Linux box. I have a query regarding the Collapsing console section.

My build scripts generates some echo statements like "BEGIN BUILD COMPONENT1" , "END BUILD COMPONENT1", "BEGIN BUILD COMPONENT2" , "END BUILD COMPONENT2", "BEGIN TEST COMPONENT1", etc..

I want to have a generic console section which covers all the above. So, I created a console section with:

Section Name: Build
Section Starts With: ^BEGIN.*
Section Ends With: ^END.*

This works, but I need to have the section name contains the values captured by the regular expression. How can I do it? I tried using {1}, {2}.. but those does not work. I want to have separate sections for individual components. Do I have to write my own plugin?

Thanks.

The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle & Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle & Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Collapsing Console Section

sandy-2
Thanks, If I write console sections for each begin/end pair, then it would make it really ugly as I have around 15 components and 5 platforms.

It seems to me that it is better to write a plugin for this.

On Wednesday, October 17, 2012 6:18:44 PM UTC+5:30, Mandeville, Rob wrote:

I’ve got the same problem, with no good solution.  In my case, some of these steps are inside of other steps, so I can be more than one “BEGIN” deep.  As far as I can tell, the only way to handle this is to write up each possible begin/end pair separately.  That was too ugly for me to pursue, and it only works if you know all the possible components in advance.

 

--Rob

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="wk0XCNH9UnwJ">jenkins...@googlegroups.com [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="wk0XCNH9UnwJ">jenkins...@googlegroups.com] On Behalf Of sandy
Sent: Wednesday, October 17, 2012 2:41 AM
To: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="wk0XCNH9UnwJ">jenkins...@googlegroups.com
Subject: Collapsing Console Section

 

Hi

I'm using Jenkins 1.483 on my Linux box. I have a query regarding the Collapsing console section.

My build scripts generates some echo statements like "BEGIN BUILD COMPONENT1" , "END BUILD COMPONENT1", "BEGIN BUILD COMPONENT2" , "END BUILD COMPONENT2", "BEGIN TEST COMPONENT1", etc..

I want to have a generic console section which covers all the above. So, I created a console section with:

Section Name: Build
Section Starts With: ^BEGIN.*
Section Ends With: ^END.*

This works, but I need to have the section name contains the values captured by the regular expression. How can I do it? I tried using {1}, {2}.. but those does not work. I want to have separate sections for individual components. Do I have to write my own plugin?

Thanks.

The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle & Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle & Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Collapsing Console Section

Dean Yu-2
Or, you can enhance the existing plugin to support the use cases you have.

  -- Dean

From: sandy <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, October 17, 2012 10:06 PM
To: "[hidden email]" <[hidden email]>
Cc: "[hidden email]" <[hidden email]>
Subject: Re: Collapsing Console Section

Thanks, If I write console sections for each begin/end pair, then it would make it really ugly as I have around 15 components and 5 platforms.

It seems to me that it is better to write a plugin for this.

On Wednesday, October 17, 2012 6:18:44 PM UTC+5:30, Mandeville, Rob wrote:

I’ve got the same problem, with no good solution.  In my case, some of these steps are inside of other steps, so I can be more than one “BEGIN” deep.  As far as I can tell, the only way to handle this is to write up each possible begin/end pair separately.  That was too ugly for me to pursue, and it only works if you know all the possible components in advance.

 

--Rob

 

From:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="wk0XCNH9UnwJ">jenkins...@googlegroups.com [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="wk0XCNH9UnwJ">jenkins...@googlegroups.com] On Behalf Of sandy
Sent: Wednesday, October 17, 2012 2:41 AM
To: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="wk0XCNH9UnwJ"> jenkins...@googlegroups.com
Subject: Collapsing Console Section

 

Hi

I'm using Jenkins 1.483 on my Linux box. I have a query regarding the Collapsing console section.

My build scripts generates some echo statements like "BEGIN BUILD COMPONENT1" , "END BUILD COMPONENT1", "BEGIN BUILD COMPONENT2" , "END BUILD COMPONENT2", "BEGIN TEST COMPONENT1", etc..

I want to have a generic console section which covers all the above. So, I created a console section with:

Section Name: Build
Section Starts With: ^BEGIN.*
Section Ends With: ^END.*

This works, but I need to have the section name contains the values captured by the regular expression. How can I do it? I tried using {1}, {2}.. but those does not work. I want to have separate sections for individual components. Do I have to write my own plugin?

Thanks.

The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle & Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle & Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer.
Loading...