Gitlab CI执行错误,但管道成功
我有一个简单的项目。gitlab-ci.yamlGitlab CI执行错误,但管道成功,gitlab,gitlab-ci,gitlab-ci-runner,Gitlab,Gitlab Ci,Gitlab Ci Runner,我有一个简单的项目。gitlab-ci.yaml variables: GIT_STRATEGY: clone stages: - build build-and-run-tests: stage: build tags: - windows script: - call npm install - call npm run build-client-in-target - call npm run run-tests-on-target
variables:
GIT_STRATEGY: clone
stages:
- build
build-and-run-tests:
stage: build
tags:
- windows
script:
- call npm install
- call npm run build-client-in-target
- call npm run run-tests-on-target
当我启动构建管道时,它在目标中执行构建客户端时失败,但管道以成功状态继续
您应该将所有预处理移到脚本之前的
标记
并删除call命令
您应该将所有预处理移到脚本之前的
标记
并删除call命令
我很确定这是因为call命令没有返回错误。你不能直接调用npm吗?我很确定这是因为call命令没有返回错误。你不能直接打电话给npm吗?
variables:
GIT_STRATEGY: clone
stages:
- build
build-and-run-tests:
stage: build
tags:
- windows
before_script:
- npm install
- npm run build-client-in-target
script:
- npm run run-tests-on-targe