Jenkins isn’t using defined variables

  continuous-integration, jenkins, php, symfony

I’m trying to make a CI of my Symfony app.
So first, I created a job named: 1c1tdemo

I’m using Copy Artifact Plugin and, I give to all template the right to copy Artifacts:

Using artifact

And then, I add post-build action like this:

enter image description here

In my second job named template-build-simple-project, i use these variable to store the artifact into a project dir (which is the job name):

enter image description here

[EnvInject] – Loading node environment variables.
Building in workspace /var/lib/jenkins/${ROOT_JOB_NAME}_build/workspace
ERROR: Unable to find project for artifact copy: $ROOT_JOB_NAME
This may be due to incorrect project name or permission settings; see help for project name in job configuration.
Finished: FAILURE

And… if I look into my server, i have the folder “‘${ROOT_JOB_NAME}_build'” created… with the workspace into it..

Someone know why variables are not used ?

Best regards 🙂

Source: Symfony Questions