Jenkins EnvInject 插件无法解析 $WORKSPACE

Jenkins EnvInject Plugin does not resolve $WORKSPACE

我想将一个新的路径变量注入到我的项目工作区中的文件夹中。

PATH=$PATH:$WORKSPACE/workspace-configuration/bin/sencha_cmd

这就是我在 Properties Content

中定义的方式

[EnvInject] - Executing scripts and injecting environment variables after the SCM step. [EnvInject] - Injecting as environment variables the properties content PATH=/home/tomcat/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/java/latest/bin:$WORKSPACE/workspace-configuration/bin/sencha_cmd

如您所见,$WORKSPACE 变量未解析

我做错了什么?

为运行准备环境需要在Jenkins Job常规设置中检查