ERROR: Job failed: build directory needs to be an absolute path

ERROR: Job failed: build directory needs to be an absolute path

-Runner installed on Windows
-registered to a gitlab server
-started service
-sample gitlab-ci.yaml written and executed leads above error.

Please post your .gitlab-ci.yml.

1 Like

hi,I have the same problem,could you help me?
here is my .gitlab-ci.yml:
image: node:10

stages:

  • build
  • deploy

cache:
paths:
- node_modules/

build:
stage: build
script:
- npm install
- npm run build
artifacts:
paths:
- dist/

deploy:
stage: deploy
script:
- pwd
- copy -R dist/ /root/vue-pwa

here is the error:
image

For anyone using docker-ssh as runner-type as well, look at this: https://stackoverflow.com/a/58982615

1 Like