artifact pattern does not work when more than 2 patterns

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

artifact pattern does not work when more than 2 patterns

Marziou, Gael
Hello,

I am using Hudson 1.149 and I am unable to specify an artifact pattern to include *.jar, *.tar, *.zip, *.ear in a multi module project.

When I specify "Archive the artifacts" and "Record fingerprints of files to track usage" to 4 patterns, nothing gets archived:

**/target/*.zip **/target/*.tar **/target/*.jar **/target/*.ear

If I set only 2 patterns, it works I get the *.zip and *.tar artifacts:

**/target/*.zip **/target/*.tar

Same if I set the 2 others,  I get the *.jar and *.ear artifacts:

**/target/*.jar **/target/*.ear

With 3 patterns, same as with 4 I get nothing.

So, it would seem to be a parsing bug to me, do you agree and should I enter a bug report?

Thanks,

Gael

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

Reply | Threaded
Open this post in threaded view
|

Re: artifact pattern does not work when more than 2 patterns

Qazwart-2
I make it a practice in my build.xml scripts to create a special
"artifacts" directory (usually I call "archive") and copy all
artifacts that I want to manipulate to that.

I've found over the years that various tools (and it looks like Hudson
*might* be one of them) work better if you have a single directory
that contains nothing but the artifacts you want to save. Plus, it
makes it easier for developers who use your ant script to locate the
resulting products.

For example, after I do my build, I also ftp the same archive files to
another system for distribution. Having everything separated in a
single folder simply makes it easier.

Sorry this doesn't quite answer your question. I suggest that you
enter a feature request for this. The "Files to Archive" specification
is the only place in the standard Hudson configuration where you
cannot have multiple lines for specification.

On 10/29/07, Marziou, Gael <[hidden email]> wrote:

> Hello,
>
> I am using Hudson 1.149 and I am unable to specify an artifact pattern to include *.jar, *.tar, *.zip, *.ear in a multi module project.
>
> When I specify "Archive the artifacts" and "Record fingerprints of files to track usage" to 4 patterns, nothing gets archived:
>
> **/target/*.zip **/target/*.tar **/target/*.jar **/target/*.ear
>
> If I set only 2 patterns, it works I get the *.zip and *.tar artifacts:
>
> **/target/*.zip **/target/*.tar
>
> Same if I set the 2 others,  I get the *.jar and *.ear artifacts:
>
> **/target/*.jar **/target/*.ear
>
> With 3 patterns, same as with 4 I get nothing.
>
> So, it would seem to be a parsing bug to me, do you agree and should I enter a bug report?
>
> Thanks,
>
> Gael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
--
David Weintraub
[hidden email]

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

Reply | Threaded
Open this post in threaded view
|

Re: artifact pattern does not work when more than 2 patterns

Jesse Glick
In reply to this post by Marziou, Gael
Marziou, Gael wrote:
> When I specify "Archive the artifacts" and "Record fingerprints of
> files to track usage" to 4 patterns, nothing gets archived

I have a Hudson project which sets 6 include patterns and it works fine.

-J.

--
[hidden email]  netbeans.org  ant.apache.org  hudson.dev.java.net
             http://google.com/search?q=e%5E%28pi*i%29%2B1

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

Reply | Threaded
Open this post in threaded view
|

RE: artifact pattern does not work when more than 2 patterns

Marziou, Gael
Could you post here your patterns?
I'd like to see what's different with mine.

Thanks,

Gael

> -----Original Message-----
> From: news [mailto:[hidden email]] On Behalf Of Jesse Glick
> Sent: Monday, October 29, 2007 7:25 PM
> To: [hidden email]
> Subject: Re: artifact pattern does not work when more than 2 patterns
>
> Marziou, Gael wrote:
> > When I specify "Archive the artifacts" and "Record fingerprints of
> > files to track usage" to 4 patterns, nothing gets archived
>
> I have a Hudson project which sets 6 include patterns and it
> works fine.
>
> -J.
>
> --
> [hidden email]  netbeans.org  ant.apache.org  hudson.dev.java.net
>              http://google.com/search?q=e%5E%28pi*i%29%2B1
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

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

Reply | Threaded
Open this post in threaded view
|

Re: artifact pattern does not work when more than 2 patterns

Jesse Glick
Marziou, Gael wrote:
> Could you post here your patterns?

nbbuild/dist/ xtest/instance/results/ nbbuild/build/generated/
nbbuild/build/sigtests*/* nbbuild/build/generated.diff
nbbuild/build/verifylibsandlicenses.xml

And a build with these:

http://deadlock.netbeans.org/hudson/job/trunk/lastSuccessfulBuild/artifact/

--
[hidden email]  netbeans.org  ant.apache.org  hudson.dev.java.net
             http://google.com/search?q=e%5E%28pi*i%29%2B1

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

Reply | Threaded
Open this post in threaded view
|

RE: artifact pattern does not work when more than 2 patterns

Marziou, Gael
Thanks, so it seems that you are using wildcards only in one pattern, that could be the reason why it works for you and not for me.
I think I will have to look at the source code to see if I can reproduce it in a unit test.

Gael

> -----Original Message-----
> From: news [mailto:[hidden email]] On Behalf Of Jesse Glick
> Sent: Tuesday, October 30, 2007 7:00 PM
> To: [hidden email]
> Subject: Re: artifact pattern does not work when more than 2 patterns
>
> Marziou, Gael wrote:
> > Could you post here your patterns?
>
> nbbuild/dist/ xtest/instance/results/ nbbuild/build/generated/
> nbbuild/build/sigtests*/* nbbuild/build/generated.diff
> nbbuild/build/verifylibsandlicenses.xml
>
> And a build with these:
>
> http://deadlock.netbeans.org/hudson/job/trunk/lastSuccessfulBu
> ild/artifact/
>
> --
> [hidden email]  netbeans.org  ant.apache.org  hudson.dev.java.net
>              http://google.com/search?q=e%5E%28pi*i%29%2B1
>

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