I’m trying to create a runner setup script using the GitLab CI pipeline. Here, I registered the executor as shell and planning to run an initial pipeline that set up the runner machines with all the required installations. I need to build flutter APKs using the pipeline.
Everything is working except a command to accept Android licenses using flutter. I’m getting the response which says:
All SDK package licenses accepted
But the job’s status is failed. Not sure what causes this to fail. This command is working in the machine (directly) without any issues.
This is the .gitlab-ci.yml code
runner-machine-configuration: tags: - flutter stage: configuration script: # Accept Licenses - yes | flutter doctor --android-licenses rules: - if: $CI_COMMIT_BRANCH == "devops1" when: always
This is the error message:
How can I troubleshoot and find the issue? Please help.