How to access ci job data

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.