我有一名跑步者在我的iOS和Android应用程序上使用OS X El Capitan。 iOS一个正常。 Android一会导致问题。
在CI触发后,我在gitlab中看到了:
Running with gitlab-ci-multi-runner 1.5.2 (76fdacd)
Using Shell executor...
Running on <machine>..
Cloning repository...
Cloning into '<path>'...
Checking out 5c742952 as dev_CI...
ERROR: Build failed: exit status 1
我在调试模式下运行gitlab-ci-multi-runner:gitlab-ci-multi-runner --debug run
我在服务器终端上看到的是:
Runtime platform arch=amd64 os=darwin revision=76fdacd version=1.5.2
Starting multi-runner from /Users/<user>/.gitlab-runner/config.toml ... builds=0
Checking runtime mode GOOS=darwin uid=501
WARNING: Running in user-mode.
WARNING: Use sudo for system-mode:
WARNING: $ sudo gitlab-runner...
Configuration loaded builds=0
concurrent: 1
checkinterval: 0
user: ""
runners:
- name: <runner name>
limit: 0
outputlimit: 0
runnercredentials:
url: <ci_url>
token: <token>
tlscafile: ""
runnersettings:
executor: shell
buildsdir: ""
cachedir: ""
environment: []
shell: ""
ssh:
user: ""
password: ""
host: ""
port: ""
identityfile: ""
docker:
dockercredentials:
host: ""
certpath: ""
tlsverify: false
hostname: ""
image: ""
cpusetcpus: ""
dns: []
dnssearch: []
privileged: false
capadd: []
capdrop: []
securityopt: []
devices: []
disablecache: false
volumes: []
cachedir: ""
extrahosts: []
networkmode: ""
links: []
services: []
waitforservicestimeout: 0
allowedimages: []
allowedservices: []
pullpolicy: ""
parallels:
basename: ""
templatename: ""
disablesnapshots: false
virtualbox:
basename: ""
basesnapshot: ""
disablesnapshots: false
cache:
type: ""
serveraddress: ""
accesskey: ""
secretkey: ""
bucketname: ""
bucketlocation: ""
insecure: false
machine: null
sentrydsn: null
modtime: {}
loaded: true
builds=0
Waiting for stop signal builds=0
Starting worker builds=0 worker=0
Feeding runners to channel builds=0
Trying to load /Users/<user>/.gitlab-runner/certs/gitlab.<domain>.com.crt ...
Dialing: tcp gitlab.<domain>.com:443 ...
Checking for builds... received build=16510 repo_url=https://gitlab.<domain>.com/<project>.git runner=<short_token>
Failed to requeue the runner: builds=1 runner=<short_token>
Running with gitlab-ci-multi-runner 1.5.2 (76fdacd) build=16510 project=101 runner=<short_token>
Shell configuration: environment: []
dockercommand:
- sh
- -c
- "if [ -x /usr/local/bin/bash ]; then\n\texec /usr/local/bin/bash --login\nelif [
-x /usr/bin/bash ]; then\n\texec /usr/bin/bash --login\nelif [ -x /bin/bash ]; then\n\texec
/bin/bash --login\nelif [ -x /usr/local/bin/sh ]; then\n\texec /usr/local/bin/sh
--login\nelif [ -x /usr/bin/sh ]; then\n\texec /usr/bin/sh --login\nelif [ -x /bin/sh
]; then\n\texec /bin/sh --login\nelse\n\techo shell not found\n\texit 1\nfi\n\n"
command: bash
arguments:
- --login
passfile: false
extension: ""
build=16510 project=101 runner=<short_token>
Using Shell executor... build=16510 project=101 runner=<short_token>
Waiting for signals... build=16510 project=101 runner=<short_token>
WARNING: Build failed: exit status 1 build=16510 project=101 runner=<short_token>
Feeding runners to channel builds=1
Submitting build to coordinator... ok build=16510 runner=<short_token>
Checking for builds... nothing runner=<short_token>
Feeding runners to channel builds=0
Checking for builds... nothing runner=<short_token>
Feeding runners to channel builds=0
Checking for builds... nothing runner=<short_token>
Feeding runners to channel builds=0
我需要提示如何找出构建失败的原因?
我看不到我的.gitlab-ci.yml文件中没有调用脚本。您也可以查看它:
compile:
script:
- echo 'compiling'
- chmod +x ./gradlew
- ./gradlew assembleDevelRelease --debug
我在我的本地mac上创建了新的跑步者,它适用于Android和iOS项目。我无法找到它在我的服务器上失败的原因。
克隆回购后直接抛出错误。我注意到所有源代码都已正确克隆,但是没有调用.gitlab-ci.yml的脚本。