Det*_*ble 15 gitlab gitlab-ci gitlab-ci-runner
我懂了
/bin/sh: eval: line 98: bash: not found
Run Code Online (Sandbox Code Playgroud)
通过执行 gitlabb .yml 文件来发送消息。
我在前面的脚本部分添加了这一行
- apk update && apk add openssh
Run Code Online (Sandbox Code Playgroud)
这没有帮助。
before_script:
- apk update && apk add openssh
- bash docker_install.sh > /dev/null
stages:
- build
- deploy
- loadtest-local
build:
stage: build
script:
- echo "building my application in ubuntu container..."
deploy:
stage: deploy
image: php:7.4
script:
- phpunit Unittest.php
loadtest-local:
image:
name: loadimpact/k6:latest
entrypoint: [""]
stage: loadtest-local
script:
- k6 run ./loadtests/performance-test.js
- k6 run ./loadtests/inttest.js
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
小智 6
这意味着管道中使用的映像之一没有安装 bash。
尝试将行更改为before_script(./docker_install.sh > /dev/null确保docker_install.sh预先设置了执行权限)。
| 归档时间: |
|
| 查看次数: |
38778 次 |
| 最近记录: |