Can't find my pipeline output!

Dear All
i am new in gitlab and i need help!
i installed gitlab and gitlab runner as docker container on my system and create simple python code and simple pipeline for test.

Blockquote
my .gitlab-ci.yml is :

image: python:3.6-slim
before_script:

  • python -V # Print out python version for debugging
    stages:
  • test
    test_job:
    stage: test
    script:
    • touch far.txt
    • pwd
    • echo “Running tests”
    • python -m unittest discover -s “./tests/”
    • touch farhad.txt
    • pwd

and my output is :

$ python -V
Python 3.6.15
$ touch far.txt
$ pwd
/builds/root/test-tefas
$ echo “Running tests”
Running tests
$ python -m unittest discover -s “./tests/”

Ran 2 tests in 0.000s
OK
$ touch farhad.txt
$ pwd
/builds/root/test-tefas
Job succeeded

and every thing work fine! but i cant find my 2 .txt file (farhad.txt and far.txt) in anywhere! also i cant find /builds/root/test-tefas directory that used in pipeline output! could you please help me how find my pipeline output?

You will have to use Job Artifacts for this.

image: python:3.6-slim

before_script:
  - python -V # Print out python version for debugging

stages:
  - test

test_job:
  stage: test
  script:
    - touch far.txt
    - pwd
    - echo "Running tests"
    - python -m unittest discover -s "./tests/"
    - touch farhad.txt
    - pwd
  artifacts:
    paths:
      - far.txt
      - farhad.txt

You will then be able to download the files from the job view.

1 Like

This is to thank you for devoting your time to answering my questions and helping me to increase my knowledge on this matter :pray: