WARNING: build.env: no matching files
Hello, Can you help me to resolve this error in my pipeline. There is the error
Running with gitlab-runner 15.8.0 (12335144) on From Oracle for my project S6vdphZe, system ID: s_d2f03e6da419 Preparing the "docker" executor 00:12 Using Docker executor with image alpine:3.17 ... Authenticating with credentials from job payload (GitLab Registry) Pulling docker image registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:arm64-12335144 ... Using docker image sha256:0d7dc8ed8f90d37b925b08cac43c25bef2e8d8ac267c894e4f13e1a977d5e2cb for registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:arm64-12335144 with digest registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper@sha256:cf0d3b72cece9c33acd50ecb162b0746edc17c098906140a7d6262560b8c0fe5 ... Pulling docker image alpine:3.17 ... Using docker image sha256:04eeaa5f8c35b8206a15c12425498c37ecd2181e0ef202bea24a2382e4dd240f for alpine:3.17 with digest alpine@sha256:f271e74b17ced29b915d351685fd4644785c6d1559dd1f2d4189a5e851ef753a ... Preparing environment 00:00 Running on runner-s6vdphze-project-43049139-concurrent-0 via cicd-server... Getting source from Git repository 00:03 Fetching changes with git depth set to 20... Initialized empty Git repository in /builds/stepbysteps/e-learning-back/.git/ Created fresh repository. Checking out bf13118d as main... Skipping Git submodules setup Executing "step_script" stage of the job script 00:01 Using docker image sha256:04eeaa5f8c35b8206a15c12425498c37ecd2181e0ef202bea24a2382e4dd240f for alpine:3.17 with digest alpine@sha256:f271e74b17ced29b915d351685fd4644785c6d1559dd1f2d4189a5e851ef753a ... $ export IMAGE_NAME=$CI_REGISTRY_NAME/$MICRO_SERVICE $ export IMAGE_TAG=$SERVICE_VERSION $ docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWWORD $CI_REGISTRY /bin/sh: eval: line 141: docker: not found Uploading artifacts for failed job 00:00 Uploading artifacts... WARNING: build.env: no matching files. Ensure that the artifact path is relative to the working directory (/builds/stepbysteps/e-learning-back) ERROR: No files to upload Cleaning up project directory and file based variables 00:01 ERROR: Job failed: exit code 127
And there is my script:
include:
- local: '.build-template.yml'
- template: Security/SAST.gitlab-ci.yml
workflow:
rules:
- if: $CI_COMMIT_BRANCH != "main" && $CI_PIPELINE_SOURCE != "merge_request_event"
when: never
- when: always
variables:
IMAGE_NAME: $CI_REGISTRY_IMAGE
IMAGE_TAG: "1.0"
DEV_SERVER_HOST: xx
DEV_ENDPOINT: http://xx:3000
stages:
- test
- build
- deploy
sast:
stage: test
build:
tags:
- docker
- oracle
- remote
artifacts:
reports:
dotenv: build.env