I think you should configure this at the template properties level. See also step 9 in https://docs.xebialabs.com/xl-release/how-to/using-the-xl-release-api-in-scripts.html
'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.
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
Please sign in to leave a comment.