xebialabs-community/xlr-bamboo-plugin

New plugin has the same error

ksondere opened this issue · 11 comments

Downloaded the new plugin and verified the new username and password fields were in place.

Then ran the plugin and it failed with the same error.

xception during execution: javax.script.ScriptException: java.lang.RuntimeException: java.lang.RuntimeException: A 'Run automated tasks as user' and 'Password' properties has to be set in order to use XL Release's API in <script> at line number 3

Which task threw this error? Was it one of the bamboo task such as:

  • RunPlan
  • TriggerDeployment

The is strange... The error you reported

A 'Run automated tasks as user' and 'Password' properties has to be set in order to use XL Release's API 

is not directly related to that task, but to the RunAs property in the Release or Template. Can you please try setting the RunAs property and try again. Let me know if you are still getting the same error.

Would it be possible to create another template that only has the bamboo.TriggerDeployment task and run that to verify that this will recreate the same issue?

Sure I can do that

I should mention that this actually by itself won't create the same issue because it's the other automated plugins that fail as soon as I set the RunAs property

hmm ok, this actually did get further. I did not set the loginAs property, just used the shared credentials.

And this was my log output

Executing triggerBambooDeployment.py

Executing getProjectId() with projectName Service - Auth

Executing getEnvironmentId() with projectId 71565314 and environmentName XL-Release QA

Executing getVersionId() with projectId 71565314 and versionName 3.1.0.222

Executing triggerDeployment() with environmentId 79134733 and versionId 166691471

Exception during execution: KeyError: 'deploymentResultId' in <script> at line number 64

Can you look in Bamboo to see if a deployment was started? Also could you verify that the Deployment job is enabled?

So I've tested and run the deployment job independant of this and it's working. I then run this and it does not start the deployment job.

Are you starting the job from XL Release with the same user that you are starting the job from the UI? Is there any error in the XL Release log?