In my pipeline I have this:
steps { script { def TAG_NAME = env.GIT_BRANCH.split("/")[1] } sshagent(credentials: ["<