Android Linter

Hi,

In my Android workflow, I am running a Gradle task lintDebug. If it fails it generates a HTML report.
What’s the best way to get access to this report?
Output in the console says “Wrote HTML report to file:///bitrise/src/app/build/outputs/lint-results-debug.html”

Cheers!
Fabien

1 Like

Hey!

You can try adding a new script step after your gradle task, and add:
cp $BITRISE_SOURCE_DIR/app/build/outputs/lint-results-debug.html $BITRISE_DEPLOY_DIR/

After - if you don’t have already - add Deploy to Bitrise.io step, that will deploy your artifacts! :wink:

Hope this helps

4 Likes

Basically what @tamaspapik said - just wanted to point to the official docs, which includes more info: http://devcenter.bitrise.io/tips-and-tricks/attach-any-file-to-build/

2 Likes

Awesome thanks guys!

2 Likes