Shell command exited with exit status 126 instead of 0
Running with gitlab-runner 14.10.1 (f761588f)
on Ionic Package Android Runner 8edcfcad
Preparing the "kubernetes" executor
Using Kubernetes namespace: ionic-runners
Using Kubernetes executor with image 319312831725.dkr.ecr.us-west-2.amazonaws.com/appflow-runners/linux:2023.10 ...
Using attach strategy to execute scripts...
Preparing environment
Waiting for pod ionic-runners/runner-8edcfcad-project-0-concurrent-0lbm7d to be running, status is Pending
Running on runner-8edcfcad-project-0-concurrent-0lbm7d via gitlab-runner-5cd9bd7bf6-z82g8...
Getting source from Git repository
$ pre-clone
[17:20:43]: Cloning repository...
Fetching changes...
Initialized empty Git repository in /builds/Gabbo144/urteeth/.git/
Created fresh repository.
Checking out b99283ba as main...
Updating/initializing submodules...
$ setup-fastlane
[17:20:45]: Cloning complete...
Fetching latest build process code...
Cloning into '/builds/appflow-runners'...
Executing "step_script" stage of the job script
$ pre-build
[17:20:47]: Building project....
$ run "fetch-updates"
Checking for build process updates...
$ run "build-android"
[17:20:49]: ---------------------------------
[17:20:49]: --- Step: add_extra_platforms ---
[17:20:49]: ---------------------------------
[17:20:49]: Setting '[:web]' as extra SupportedPlatforms
[17:20:49]: ------------------------------
[17:20:49]: --- Step: default_platform ---
[17:20:49]: ------------------------------
[17:20:49]: Driving the lane 'android build_capacitor' 🚀
[17:20:49]: -------------------------
[17:20:49]: --- Step: sentry_init ---
[17:20:49]: -------------------------
[17:20:49]: ----------------------------
[17:20:49]: --- Step: begin_building ---
[17:20:49]: ----------------------------
[17:20:49]: Began building @ 2024-08-24T17:20:49
[17:20:49]: ---------------------------
[17:20:49]: --- Step: build_summary ---
[17:20:49]: ---------------------------
+---------------------+-----------------------------+
| Build Summary |
+---------------------+-----------------------------+
| Job ID | 9605334 |
| Node.js version | v20.9.0 |
| Cordova CLI version | 12.0.0 (cordova-lib@12.0.1) |
| npm version | 10.1.0 |
| yarn version | 1.22.19 |
+---------------------+-----------------------------+
[17:20:51]: No build credential specified
[17:20:51]: ---------------------------
[17:20:51]: --- Step: set_ionic_cli ---
[17:20:51]: ---------------------------
[17:20:53]: Unable to detect ionic project type. Skipping...
[17:20:53]: ------------------------------------
[17:20:53]: --- Step: detect_package_manager ---
[17:20:53]: ------------------------------------
[17:20:53]: Detecting package manager
[17:20:53]: Defaulting to npm
[17:20:53]: ---------------------------------
[17:20:53]: --- Step: add_git_credentials ---
[17:20:53]: ---------------------------------
[17:20:53]: Writing git-credentials files
[17:20:53]: git-credentials successfully added to project
[17:20:53]: --------------------------------
[17:20:53]: --- Step: get_appflow_config ---
[17:20:53]: --------------------------------
[17:20:53]: Checking for appflow.config.json
[17:20:53]: Appflow config not detected
[17:20:53]: --------------------------------
[17:20:53]: --- Step: dependency_install ---
[17:20:53]: --------------------------------
[17:20:53]: Installing Dependencies (in /builds/Gabbo144/urteeth)
[17:20:53]: $ npm install --quiet
[17:20:54]: â–¸ up to date, audited 181 packages in 660ms
[17:20:54]: â–¸ 22 packages are looking for funding
[17:20:54]: â–¸ run `npm fund` for details
[17:20:54]: â–¸ found 0 vulnerabilities
[17:20:54]: -------------------------------------
[17:20:54]: --- Step: create_capacitor_config ---
[17:20:54]: -------------------------------------
[17:20:54]: -------------------------
[17:20:54]: --- Step: get_web_dir ---
[17:20:54]: -------------------------
[17:20:54]: webDir is `www`
[17:20:54]: -----------------------------------
[17:20:54]: --- Step: modify_cap_web_config ---
[17:20:54]: -----------------------------------
[17:20:54]: No custom native config detected.
[17:20:54]: ---------------------------
[17:20:54]: --- Step: set_java_home ---
[17:20:54]: ---------------------------
[17:20:54]: Try to detect the android gradle plugin version
[17:20:54]: Project Android Gradle Plug-in major version is 8: set Java to 17
[17:20:54]: ---------------------------
[17:20:54]: --- Step: build_pro_app ---
[17:20:54]: ---------------------------
[17:20:54]: Building app from /builds/Gabbo144/urteeth
[17:20:54]: Generating app manifest...
[17:20:54]: ----------------------
[17:20:54]: --- Step: cap_sync ---
[17:20:54]: ----------------------
[17:20:55]: -------------------------
[17:20:55]: --- Step: upload_logs ---
[17:20:55]: -------------------------
[17:20:58]: --------------------------------------
[17:20:58]: --- Step: sentry_capture_exception ---
[17:20:58]: --------------------------------------
+----------------------+-------------------------+
| Lane Context |
+----------------------+-------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | android |
| LANE_NAME | android build_capacitor |
| IONIC_CLI_VERSION | 7.1.1 |
| NODE_PACKAGE_MANAGER | npm |
| PROJECT_WEB_DIR | www |
+----------------------+-------------------------+
[17:20:58]: Shell command exited with exit status 126 instead of 0.
I, [2024-08-24T17:20:58.027897 #199] INFO -- sentry: ** [Sentry] [Transport] Sending envelope with items [event] 81f99276731d479aa7b13cee38efd3d9 to Sentry
+------+--------------------------+-------------+
| fastlane summary |
+------+--------------------------+-------------+
| Step | Action | Time (in s) |
+------+--------------------------+-------------+
| 1 | add_extra_platforms | 0 |
| 2 | default_platform | 0 |
| 3 | sentry_init | 0 |
| 4 | begin_building | 0 |
| 5 | build_summary | 1 |
| 6 | set_ionic_cli | 1 |
| 7 | detect_package_manager | 0 |
| 8 | add_git_credentials | 0 |
| 9 | get_appflow_config | 0 |
| 10 | dependency_install | 0 |
| 11 | create_capacitor_config | 0 |
| 12 | get_web_dir | 0 |
| 13 | modify_cap_web_config | 0 |
| 14 | set_java_home | 0 |
| 15 | build_pro_app | 0 |
| 💥 | cap_sync | 0 |
| 17 | upload_logs | 2 |
| 18 | sentry_capture_exception | 0 |
+------+--------------------------+-------------+
[17:20:58]: fastlane finished with errors
/usr/local/bundle/bin/fastlane: [!] Shell command exited with exit status 126 instead of 0. (FastlaneCore::Interface::FastlaneShellError)
Running after_script
Running after script...
$ run "clean-up"
Cleaning up project directory and file based variables
ERROR: Job failed: command terminated with exit code 1