Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gitlab CI执行错误,但管道成功_Gitlab_Gitlab Ci_Gitlab Ci Runner - Fatal编程技术网

Gitlab CI执行错误,但管道成功

Gitlab 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

我有一个简单的项目。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 
当我启动构建管道时,它在目标中执行
构建客户端时失败,但管道以成功状态继续


您应该将所有预处理移到脚本之前的
标记 并删除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