How to use Jenkins environment variable in shell script? How to use Jenkins environment variable in shell script? jenkins jenkins

How to use Jenkins environment variable in shell script?


As shellcheck would tell you, expansions don't happen in single quotes. Use double quotes instead:

sed -i "s/Version 3.0/Version $BUILD_DISPLAY_NAME/g" /var/lib/jenkins/jobs/AndroidTest/workspace/xxx/res/values/strings.xml