Build warnings artifact location

Rasti
Contributor
January 22, 2021

Hello.

Following the tutorial at https://developer.atlassian.com/server/bitbucket/tutorials-and-examples/code-insights-tutorial/ I want to parse clang-tidy build warnings to create code insight report and annotations and post them to Bitbucket.

The Bamboo's built-in feature "Build warnings parser" does a great job in parsing several output formats, including clang and creates a build artifact. That is a zip file containing a well-formatted JSON file with all parsed warnings. This I can download manually from Bamboo UI.

However, I have an issue to find out, how to access this artifact from within a task following my "Build warnings parser"-task. I want to create a task that calls a script to parse the JSON and post the data to Bitbucket as described in the tutorial. But, where is this artifact located? I cannot find it in the build directory on the build agent, nor on the Bamboo server.

I don't want to implement the same functionality as the Build warnings parser already does, namely parse a rather cryptical clang log file, but make use of the build warnings parser output format that is uniform for any build outputs (maven, javac, jslint etc.), so I can reuse my script for posting code insights to Bitbucket for our other projects using other programming languages and their linters.

So my question is - how can I access the "build warnings parser"-artifact from a task?

Any help appreciated.

1 answer

0 votes
rafaelBauer November 29, 2021

Hello Rasti,

Were you able to get the data from Clang and post it to the Bitbucket code insights?

Rasti
Contributor
January 10, 2022

Hello @rafaelBauer ,

unfortunately, as I didn't get any answer to this question, I'm still on the same stand. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events