Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bamboo adding '?' to a variable in a script of a task!

Deleted user July 3, 2018

Hi,

We are using Bamboo for automated deployments in our project. There is a task in one deployment plan which is doing the automatic sign in for an application. It is using a Code Sign certificate which is properly installed in the server. Following is the sample of script which is getting executed in this task:

 

"%cd%\ApolloCI\ApolloSignTool\ApolloSignTool.exe"
"%cd%\ClickOnceCDA" ${bamboo.CDAAssemblyName} ${bamboo.jira.version}.${bamboo.buildNumber} ${bamboo.CertificationThumbprint}

 

The variables have been provided in the variables section of Bamboo. The issue is, Bamboo is automatically adding a '?' before CertificationThumbprint variable. For example, if the thumbprint is fa759fdfb46ed29cad01cb97866152601600f2b5, while executing this task, Bamboo is making it ?fa759fdfb46ed29cad01cb97866152601600f2b5. And this is making this task fail everytime. 

 

Can somebody help ASAP?

 

Thanks,

Nehal

1 answer

0 votes
Foong
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 25, 2018

Check the build log for the following example line where Bamboo will update the variable value and confirm if there is an additional character '?':

command 26-Jul-2018 14:11:26 Substituting variable: ${bamboo.CertificationThumbprint} with fa759fdfb46ed29cad01cb97866152601600f2b5

If not, add the following to be the first line in the Script so that it will show what command is executed to confirm if the character '?' is added during the command execution:

set -x

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events