Change the BUILD_ID variable format

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Change the BUILD_ID variable format

Gregory Boissinot
Hello,

The hudson BUILD_ID variable uses the format 'YYYY-MM-DD_hh-mm-ss'.
How can i have the following format 'YYYYMMDDHHmm' without create a script processing formating.

I want to inject the current build id with correct format directly to my Maven builds scripts .

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Change the BUILD_ID variable format

Kohsuke Kawaguchi
Administrator
Gregory BOISSINOT wrote:
> Hello,
>
> The hudson BUILD_ID variable uses the format 'YYYY-MM-DD_hh-mm-ss'.
> How can i have the following format 'YYYYMMDDHHmm' without create a script
> processing formating.
>
> I want to inject the current build id with correct format directly to my
> Maven builds scripts .

I think this would make a nice plugin.

Would you be interested in writing one? I think it's pretty simple, and
we are happy to help.

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Change the BUILD_ID variable format

Gregory Boissinot
Yes,  i am interested

I will examine how to make this plugin.

Thanks


kohsuke wrote
Gregory BOISSINOT wrote:
> Hello,
>
> The hudson BUILD_ID variable uses the format 'YYYY-MM-DD_hh-mm-ss'.
> How can i have the following format 'YYYYMMDDHHmm' without create a script
> processing formating.
>
> I want to inject the current build id with correct format directly to my
> Maven builds scripts .

I think this would make a nice plugin.

Would you be interested in writing one? I think it's pretty simple, and
we are happy to help.

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

 
Reply | Threaded
Open this post in threaded view
|

Re: Change the BUILD_ID variable format

Kohsuke Kawaguchi
Administrator
Cool!

You should first set up the environment by following
http://hudson.gotdns.com/wiki/display/HUDSON/Plugin+tutorial
And you'll be extending the BuildWrapper extension point.

The xvnc plugin is a relatively simple plugin that uses this same
extension, so you can also start by copying its code.

Also let me know your java.net ID so that we can give you the commit
access to the repository.

2008/8/7 Gregory BOISSINOT <[hidden email]>:

>
> Yes,  i am interested
>
> I will examine how to make this plugin.
>
> Thanks
>
>
>
> kohsuke wrote:
>>
>> Gregory BOISSINOT wrote:
>>> Hello,
>>>
>>> The hudson BUILD_ID variable uses the format 'YYYY-MM-DD_hh-mm-ss'.
>>> How can i have the following format 'YYYYMMDDHHmm' without create a
>>> script
>>> processing formating.
>>>
>>> I want to inject the current build id with correct format directly to my
>>> Maven builds scripts .
>>
>> I think this would make a nice plugin.
>>
>> Would you be interested in writing one? I think it's pretty simple, and
>> we are happy to help.
>>
>> --
>> Kohsuke Kawaguchi
>> Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Change-the-BUILD_ID-variable-format-tp18858944p18869867.html
> Sent from the Hudson users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>



--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Change the BUILD_ID variable format

Gregory Boissinot
My java.net ID is gbois

Thanks,

Gregory


kohsuke wrote
Cool!

You should first set up the environment by following
http://hudson.gotdns.com/wiki/display/HUDSON/Plugin+tutorial
And you'll be extending the BuildWrapper extension point.

The xvnc plugin is a relatively simple plugin that uses this same
extension, so you can also start by copying its code.

Also let me know your java.net ID so that we can give you the commit
access to the repository.

2008/8/7 Gregory BOISSINOT <gregory.boissinot@gmail.com>:
>
> Yes,  i am interested
>
> I will examine how to make this plugin.
>
> Thanks
>
>
>
> kohsuke wrote:
>>
>> Gregory BOISSINOT wrote:
>>> Hello,
>>>
>>> The hudson BUILD_ID variable uses the format 'YYYY-MM-DD_hh-mm-ss'.
>>> How can i have the following format 'YYYYMMDDHHmm' without create a
>>> script
>>> processing formating.
>>>
>>> I want to inject the current build id with correct format directly to my
>>> Maven builds scripts .
>>
>> I think this would make a nice plugin.
>>
>> Would you be interested in writing one? I think it's pretty simple, and
>> we are happy to help.
>>
>> --
>> Kohsuke Kawaguchi
>> Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Change-the-BUILD_ID-variable-format-tp18858944p18869867.html
> Sent from the Hudson users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@hudson.dev.java.net
> For additional commands, e-mail: users-help@hudson.dev.java.net
>
>



--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@hudson.dev.java.net
For additional commands, e-mail: users-help@hudson.dev.java.net
Reply | Threaded
Open this post in threaded view
|

Re: Change the BUILD_ID variable format

Kohsuke Kawaguchi
Administrator

Added. If you get stuck somewhere, let me know.

Gregory BOISSINOT wrote:

> My java.net ID is gbois
>
> Thanks,
>
> Gregory
>
>
>
> kohsuke wrote:
>>
>> Cool!
>>
>> You should first set up the environment by following
>> http://hudson.gotdns.com/wiki/display/HUDSON/Plugin+tutorial
>> And you'll be extending the BuildWrapper extension point.
>>
>> The xvnc plugin is a relatively simple plugin that uses this same
>> extension, so you can also start by copying its code.
>>
>> Also let me know your java.net ID so that we can give you the commit
>> access to the repository.
>>
>> 2008/8/7 Gregory BOISSINOT <[hidden email]>:
>>>
>>> Yes,  i am interested
>>>
>>> I will examine how to make this plugin.
>>>
>>> Thanks
>>>
>>>
>>>
>>> kohsuke wrote:
>>>>
>>>> Gregory BOISSINOT wrote:
>>>>> Hello,
>>>>>
>>>>> The hudson BUILD_ID variable uses the format 'YYYY-MM-DD_hh-mm-ss'.
>>>>> How can i have the following format 'YYYYMMDDHHmm' without create a
>>>>> script
>>>>> processing formating.
>>>>>
>>>>> I want to inject the current build id with correct format directly to
>>>>> my
>>>>> Maven builds scripts .
>>>>
>>>> I think this would make a nice plugin.
>>>>
>>>> Would you be interested in writing one? I think it's pretty simple, and
>>>> we are happy to help.
>>>>
>>>> --
>>>> Kohsuke Kawaguchi
>>>> Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Change-the-BUILD_ID-variable-format-tp18858944p18869867.html
>>> Sent from the Hudson users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>
>>
>>
>> --
>> Kohsuke Kawaguchi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

smime.p7s (4K) Download Attachment