How to use $ characters within token values to prevent failures?

Document ID : KB000032170
Last Modified Date : 14/02/2018
Show Technical Document Details

Summary:

The following error is seen in the nolio_dm_all.log when using the '$' character within token value.

2015-09-16 14:22:44,412 [StageExecutorTask-375] ERROR (com.nolio.releasecenter.services.release.execution.engine.ArtifactPackageDistributionServiceImpl:484) - Failed to distribute artifact [artifact_store/releaseId_604/artifact-type/artifact-definition/version/artifact.txt]to NES [es_EXECUTIONSERVER]. Failed to replace tokens. [Illegal group reference]

 

Solution: 

If you get an error in the nolio_dm_all.log file similar to the above error, during your release's artifact distribution, a possible issue that could cause this would be the use of a $ character within a token value. If you plan to use a $ character within a token value, it will need to be escaped with a \ character.

Ex: If your token value needs to be 'pas$123', then you will need to set the token value as 'pas\$123'