Hi,
I need to parse a variable defined in the build to the command of the SSH Task. is this possible?
Regards
Christina
Yes. We do it all the time.
https://confluence.atlassian.com/display/BAMBOO/Using+global,+plan+or+build-specific+variables
In fact it doesn't work...
I've set-up a SSH Task in a deployment project, with this command: echo ${bamboo_buildNumber}
This command - executed on the remote server the SSH task connects to - echos an empty line.
Needless to say this works flawlessly when executed as a simple script command locally on the Bamboo agent machine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you try ${bamboo.buildNumber} ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
they are not passing the environment through ssh. if you change ${bamboo_buildNumber} to ${bamboo.buildNumber} it gets you closer, but only because they substitute the bamboo variable before shelling into the box.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.