Chris Beach
Chris Beach

Reputation: 4392

Can I use tokens in Jenkins job config?

I'd like to use the Jenkins job name in the config:

Are there tokens I could use here?

Upvotes: 0

Views: 340

Answers (1)

malenkiy_scot
malenkiy_scot

Reputation: 16615

For SCM the answer is 'yes' - use ${JOB_NAME} (e.g. svn://myserver/myrepo/trunk/${JOB_NAME}).

In Maven build step it does not work. However, you may try using a custom workspace (push 'Advanced' button under 'Build' -> check 'use custom workspace') that contains ${JOB_NAME} (e.g. C:\workspaces\${JOB_NAME}) as a workaround.

Upvotes: 1

Related Questions