nasaa
nasaa

Reputation: 2731

Bamboo artifacts

I am very new to Bamboo. I have got a html file generated using log4j. I wish to put it in user-defined artifacts but don't know how.

It is in surefire-reports folder so I tried giving Source directory as "**/target/surefire-reports/" and Artifact Copy Pattern as "**/*.html" but it doesn't seems to work.

Any idea how to configure it?

Upvotes: 4

Views: 5639

Answers (3)

pharsfalvi
pharsfalvi

Reputation: 807

The Location field does not provide the Ant file copy pattern feature, only a fixed path is accepted relative to the working directory.

Set the Location as

target/surefire-reports
and the Copy pattern as
**/*.html

Also make sure that the Shared checkbox is set, otherwise other jobs will not be able to download the artifact.

Upvotes: 0

tanderson
tanderson

Reputation: 36

I wanted to get all surefire reports from each module, so I created a new Artifact definition with:

  • Name = Surefire Reports
  • Location =
  • Copy Pattern = /target/surefire-reports/.*

This was using Bamboo 3.2.2.

Upvotes: 1

FoxyBOA
FoxyBOA

Reputation: 5846

Try to change copy pattern to

*.html

and verify your complete path.

Upvotes: 3

Related Questions