Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New plugin has the same error #7

Open
ksondere opened this issue Sep 18, 2019 · 11 comments
Open

New plugin has the same error #7

ksondere opened this issue Sep 18, 2019 · 11 comments

Comments

@ksondere
Copy link

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

@zvercodebender
Copy link
Contributor

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

  • RunPlan
  • TriggerDeployment

@ksondere
Copy link
Author

ksondere commented Sep 18, 2019 via email

@zvercodebender
Copy link
Contributor

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.

@ksondere
Copy link
Author

ksondere commented Sep 19, 2019 via email

@zvercodebender
Copy link
Contributor

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?

@ksondere
Copy link
Author

Sure I can do that

@ksondere
Copy link
Author

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

@ksondere
Copy link
Author

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

@zvercodebender
Copy link
Contributor

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

@ksondere
Copy link
Author

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.

@zvercodebender
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants