Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for exporting gradle output to file #101

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

angelolloqui
Copy link

Checklist

  • I've read and followed the Contribution Guidelines
  • step.yml and README.md is updated with the changes (if needed)

Version

Requires a MAJOR/MINOR/PATCH version update

Context

This PR adds support to gradle runner for outputing the raw logs into a file. It is useful if you want to add steps in your workflow that parses the build log searching for specific info.

Resolves: https://discuss.bitrise.io/t/allow-output-from-gradle-runner-step-to-be-stored-in-a-file/22551

Changes

  • Added a new input parameter called export_gradle_log as bool
  • Make a new case for when export_gradle_log is true, to use a new command helper to write in file
  • Created the new command helper that prints the log (full) in console and writes the file
  • Updated documentation

Investigation details

Decisions

I decided to leave the parameter as optional and show the full output (instead of last 20 lines like in debug) to keep backward compatibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant