jangrewe / gitlab-ci-android

GitLab CI image for building Android apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chmod: cannot access './gradlew': No such file or directory

haimari opened this issue · comments

Hello, When trying to us the suggested .gitlab-ci.yml with gitlab.com
Getting:

Running with gitlab-runner 13.2.0-rc2 (45f2b4ec)
on docker-auto-scale 72989761
Preparing the "docker+machine" executor
01:22
Using Docker executor with image jangrewe/gitlab-ci-android ...
Pulling docker image jangrewe/gitlab-ci-android ...
Using docker image sha256:eafa7507158d67d3a47b9ef1980cf0b2545e0b08b8808ab7bfa77764211a9543 for jangrewe/gitlab-ci-android ...
Preparing environment
00:05
Running on runner-72989761-project-19457915-concurrent-0 via runner-72989761-srm-1595352474-97379c5e...
Getting source from Git repository
00:07
$ eval "$CI_PRE_CLONE_SCRIPT"
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/test-projects/flutter/.git/
Created fresh repository.
Checking out d47aa9b1 as fastlane...
Skipping Git submodules setup
Restoring cache
00:02
Checking cache for 19457915...
FATAL: file does not exist                         
Failed to extract cache
Executing "step_script" stage of the job script
00:01
$ export GRADLE_USER_HOME=$(pwd)/.gradle
$ chmod +x ./gradlew
chmod: cannot access './gradlew': No such file or directory
ERROR: Job failed: exit code 1

If you add this to the CI you can see the issue:

$ find / -name "gradlew"
/sdk/extras/google/google_play_services/samples/unified/ActivityDemo/gradlew
$ pwd
/builds/test-projects/flutter

Hi, if you project does not use Gradle, then gradlew does of course not exist in the workdir.
You may want to try an Android project...