[Solved] Why pipeline missed generating artifacts

Hi,

I’ve set GtiLab-CI in one of my repo. It will generate artifacts when finished, so I can download it with GitLab API.

But now, the pipeline missed generating artifacts, could anyone pls tell me why and how to fix this?

Thanks very much :slight_smile:

I didn’t change the CI script, it worked fine before. I just pushed two commits and found this problem.

Here is the CI script

# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/hexo
image: node:4.2.2

pages:
  cache:
    paths:
    - node_modules/

  script:
  - npm install hexo-cli -g
  - npm install
  - hexo deploy
  artifacts:
    paths:
    - public
  only:
  - master

Problem solved.

GitLab 9.0 release will clean Pages artifacts after deployment.