How to call variables in shell for declarative pipeline?

You’re using triple single quotes, which disables groovy string interpolation.
When you use triple double quotes it will work

sh """
echo "${configFile}"
"""
1 Like