How to deploy build atrifacts to the directory on the same server

I have dificulty understanding how can I use build artefacts (except clicking the download button)

I am on Self managed GiltLab CE. I generate oxygen documentation and want artefacts to be deployed to the directory on the server.

have no idea how to archive it.

image: gul-doxygen:latest

stages:
  - pages
  - deploy

pages:
  stage: pages
  script:
    - echo "executing the doxygen"
    - doxygen ./Doxyfile
    - apt update
    - apt install tree
    - tree -d
    - mv --verbose documentation/html/ public/  
  artifacts:
    paths:
      - public
  only:
    - DOXYGEN-MASTER 

deploy: 
  stage: deploy
  dependencies:
    - pages
  script:
    - echo "Hello world"

I do not understand how can I access artifacts in the script.

Atrifacts API does not work for me (I am always getting error 404)

all artifacts from previous jobs are automatically downloaded and extracted to all subsequent jobs. In your case the directory public will be also available in deploy job (if both jobs are in the pipeline) and you can do anything you want with it.

2 Likes