How to get the job name and pass it to reference?

Hi folks! Do you know any way I can get the job name and pass them to a reference?
My YAML file:

    push_project: &push_project
    run:
      command: 
        ci/push_project.sh
    build_test: &build_test
    steps:
      - checkout
      - *push_project
      - run:
          name: Build And Test If Needed
          command: ci/ci_build_tests.sh

 jobs:

  Job_A:
<<: *build_test
  Job_B:
<<: *build_test
  Job_C:
<<: *build_test

I want to pass the job name: Job_A as a parameter into reference build_test, then, pass to push_project command ci/push_project.sh.

Thanks!

Solved by passing ${CIRCLE_JOB}

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.