Post

2 followers Follow
0
Avatar

'Run automated tasks as user' for releases created by trigger

My release needs to run automatically based on a cron schedule. I have created the trigger, but the release fails as the 'Run automated tasks as user' and password is not set. I don't see an option to set it when i create the trigger. How do I set the credentials.

I tried defining variables and setting using API, but to use the API, the credentials needs to be set.

getCurrentRelease().setScriptUsername("${scriptUserName}")
getCurrentRelease().setScriptUserPassword(releaseVariables['scriptUserPassword'])

This doesnt work

Exception during execution: 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 1

Basil James

Please sign in to leave a comment.

1 comment