How to pass variables to job templates

I have the following piece of code

job-template: &job-template
plan:
- get: project-x.git
trigger: true
- task: t1
config:
platform: linux
image_resource:
type: docker-image
source: {repository: alpine}
run:
path: echo
args: [“Hello, world!”]

###############################################################################

resources:

###############################################################################

jobs:

  • name: j1
    <<: *job-template
  • name: j2
    <<: *job-template
  • name: j3
    <<: *job-template
  • name: j4
    <<: *job-template
  • name: j5
    <<: *job-template

Instead of all the jobs printing “Hello, World!” , i want to pass a string variable from the Job to Job template , so that each job prints differently.
“Hello, World! am from j1”
“Hello, World! am from j2”