How to add variable into sh command

You’re using single quotes, that makes groovy not interpolate the variables.
You should use double quotes
sh("...")

1 Like