question

Jay Myers avatar image
Jay Myers asked

How to automate ask cli init on Jenkins?

Tried with multiple ways to provide inputs to the ask cli init command but nothing proved useful. Is there a way to enter values to the different questions during ask init without using the browser? --no-browser option still requires to fetch the authorization code. Trying to automate the model update in jenkins using ask cli update-model

ask cliautomation
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered

Hello and thank you for your message.

Currently there needs to have an interaction with the user to initialize ask init as it is necessary to provide the user's password in order to generate the token. Once it has been initialized, there is no need to provide the --no-browser again. For update-model, the only mandatory flags are --skill-id, --file and --locale.

Further information can be found here.

Regards,
Barry

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.