Is it possible to parse bamboo variables to the command in SSH Task?

Christina Edelbluth August 4, 2013

Hi,

I need to parse a variable defined in the build to the command of the SSH Task. is this possible?

Regards

Christina

2 answers

1 accepted

0 votes
Answer accepted
EddieW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 5, 2013
0 votes
Arik Kfir November 20, 2014

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.

john_pfeiffer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 5, 2014

Can you try ${bamboo.buildNumber} ?

ashley stovall January 22, 2016

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events