Can I get access to a folder content using artifacts?

sendami linan April 24, 2015

Hey guys, 

I'm returning a html report using an artifact. 

If I add in the filter just the html report, when I click on the report this is returned without applying format. 

If I add in the filter **/*.* it's returning the same report without the folder and files are under the folder I'm adding. 

How can I do it? The only thing I want it's having the html report correctly displayed. 

Thanks in advance, 

Senda

 

1 answer

0 votes
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 24, 2015

Hello Sendami,

Thank you for your question.

The best way on helping you would be if you provide the build log with the Script task included in it, so I could have a better understanding to the build you are running and the artifact you are attempting on generate. Since the same wasn't provided, I will suggest you on:

  1. please, create a new Plan in Bamboo (i.e.: Artifact)
  2. please, add a Script task

    echo "hello" >> greeting.txt
     
    mkdir foo
    echo "bar" >> foo/bar.txt

    Screen Shot 2015-03-16 at 6.14.21 PM.png

  3. please, create an Artifact as per following:

    Screen Shot 2015-03-16 at 6.12.57 PM.png

     

  4. run your build
    Screen Shot 2015-03-16 at 6.15.28 PM.png

Now, when using the Artifact download task you are able to select which artifact you want to download and the location that artifacts will be downloaded to, relative to the build working directory.

Please, refer to the following documentation for further information.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events