How to access ci job data

ci
#1

How can I access specific job data inside the job itself.

For example:

lint:
  stage: lint
  cache:
    paths:
      - node_modules/
      - ~/.yarn
    policy: pull
  script:
    - yarn
    - yarn lint
  allow_failure: true

I have this job where I am checking the linting of the application now once it runs this job, how can I access the data of this job, like

  • did the job succed or failed
  • how much time it took to run the job

and more.

0 Likes