Every newer job contains artifact files of older jobs

Hi,

I’m actually using GitLab CI for building an export-<ActualtimeStamp>.tar.gz with yarn and gulp within 3 stages (I know I can combine this to one stage, but it should be also learning for me).

The more jobs are done, the more job artifacts of older jobs are included in my job-artifact:
For example: my last job artifact.zip contains:

├── export182018-02-19-121004.tar.gz
├── export182018-02-19-123605.tar.gz
├── export182018-02-19-124433.tar.gz
├── export182018-02-19-124719.tar.gz

…but it should only contains the last one – the one of the actual job.

My actual .gitlab-ci.yml looks like:

stages:
  - install
  - build
  - package

# Speed up builds
cache:
  key: "$CI_PROJECT_ID"
  untracked: true
  paths:
    - node_modules
    - .yarn

install:dependencies-and-preprocess:
  stage: install
  image: edbizarro/gitlab-ci-pipeline-php:7.1-alpine
  script:
    - yarn config set cache-folder .yarn
    - yarn
    - which ./node_modules/gulp/bin/gulp.js
    - ./node_modules/gulp/bin/gulp.js preprocess-sourcefiles
  artifacts:
    expire_in: 20 minutes
    when: on_success
    paths:
    - dist/
    - node_modules/

build:generate-favicons:
  stage: build
  image: edbizarro/gitlab-ci-pipeline-php:7.1-alpine
  script:
    - ./node_modules/gulp/bin/gulp.js generate-favicons
  dependencies:
    - install:dependencies-and-preprocess
  artifacts:
    expire_in: 20 minutes
    when: on_success
    paths:
    - dist/
    - node_modules/


pack-gz:
  stage: package
  image: edbizarro/gitlab-ci-pipeline-php:7.1-alpine
  script:
    - ./node_modules/gulp/bin/gulp.js create-tarball
  artifacts:
    expire_in: 1 day
    when: on_success
    paths:
      - export/

Does anybody has a tip for me?

Do I have to rm the folder in each job?