Closed StephenCoady closed 7 years ago
Verification steps:
Run the installer. The user should be prompted to visit a link to the licence and if they accept they should press enter.
👀
Executing this inside the android sdk pod works: test -f {{ android_sdk_home }}/tools/bin/sdkmanager
Then changing the when condition to check the shell command exit code ("rc" property) works
the only trouble with doing it this way is that when it doesn't exist (i.e when the project has just been set up) then it will fail and cause anything that uses the output to be skipped when ignore_errors is used
@odra sorry, now ignore my previous comment. I had my logic wrong. Although now we get a big red warning on the first time we run the playbook saying the test command has failed. Is this ideal?
apologies for the spam, I missed your offline comment to use failed_when: false. this got around an error showing. I have updated the code now and it should be working
JIRA https://issues.jboss.org/browse/AGDIGGER-204
Changes A prompt for the android sdk licence and download has been added.