I'm trying to share some information output to stdout (and then recorded in the build log) by one of my tasks for use in a deployment. I feel like artifact sharing would be ideal for this, but I'm having difficulty finding the directory or pattern necessary to grab the build log. From some cursory research it looks like it should be in "build_logs" directory and a pattern "*.log" should grab it, but no luck. Any thoughts? Has anyone had success including the build log as an artifact?
This is definitely possible, but it will require a little work on your part.
Pipe the output of your script(s) to 'tee' so you also can write a copy of the output to some file and then add that file as an artifact.
Note you may need to combine stderr and stdin using '|&' or write them to separate files depending on your needs.
Luckily I only have a few tasks, beyond checking out the repository, and the one I need information from is already an inline script. I was able to quickly test this by simplifying my script to just a quick echo. """ echo 'TEST OUTPUT' | tee log.log """ and was able to get this saved as artifact. Thanks @Alex Soto !
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs