ERROR: Job failed: exit code 1

Summary

Script executed with success, but job fail.

Steps to reproduce

Here is my attempt, you can check the error, an error message appears: "ERROR: Job failed: exit code 1"

Actual behavior

An error message appears: "ERROR: Job failed: exit code 1"

Expected behavior

Show message "code coverage done!", from my last script configured in .gitlab-ci.yml

Relevant logs and/or screenshots

screenshots

.gitlab-ci.yml source:

image: microsoft/dotnet

stages:
  - build_and_test

build-modulo-materiais:
  stage: build_and_test
  script:
    - cd v1/materiais
    - dotnet build src/api/api.csproj
    - dotnet build test/test.csproj
    - dotnet restore tools/tools.csproj
    - cd tools
    - dotnet minicover instrument --workdir ../ --assemblies test/**/bin/**/*.dll --sources src/**/*.cs
    - dotnet minicover reset
    - dotnet test ../test/test.csproj --no-build
    - dotnet minicover uninstrument --workdir ../
    - dotnet minicover report --workdir ../ --threshold 90 ## JOB FAIL HERE, BUT SCRIPT EXECUTED WITH SUCCESS
    - echo "code coverage done!"

Environment description

Are you using shared Runners on GitLab.com? Yes
Please, see complete in https://gitlab.com/linear-back/pocs/estrutura-projetos-testes-ci-cd/-/jobs/53438671

Used GitLab Runner version

Running with gitlab-runner 10.5.0-rc1 (7a8e43fe)
  on docker-auto-scale (e11ae361)
Using Docker executor with image microsoft/dotnet ...
Edited by George Paoli