I am trying to automate in jenkins the build of my ionic cordova app.
The command I run in jenkins are:
yarn
ionic cordova prepare
On the ionic cordova prepare, it is prompting some questions if I want to update the version of some plugin
Local plugin @ionic/cli-plugin-cordova has an update available (1.2.1 => 1.3.0 )! Would you like to install it? (Y/n)
Is there any flag or parameter to pass pass to the prepare to disable the prompt or say no to the update?
I didn't find any information in the documentation.
I you ever want to say YES instead of NO you can use:
--no-interactive --confirm
I found the solution from the documentation
The flag --no-interactive
does the trick.
--interactive / --no-interactive
: Switch between interactive (default) and non-interactive mode. In non-interactive mode, the spinner and all prompts are disabled (useful for CI/CD servers).
It will basically answer no to all the update questions, very convenient.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With