Is your feature request related to a problem? Please describe.
If I setup a Jenkins CI build and specify the "sfdx" as a custom tool, I would also want to install custom plugins that I have created to aid in the build process. Currently, there is no way to execute sfdx plugins:install foo-bar without confirming the plugin installation since it is not digitally signed. Because of this, I cannot use the Jenkins Custom Tool plugin when I need specific custom SFDX CLI plugins as well.
What are you trying to do
I need a way to dynamically setup the SFDX CLI and plugins that I want to install via the Jenkins custom tool option.
Describe the solution you'd like
I would like a "-r, --noprompt" flag be added to plugins:install command so that I can automate on my CI builds the installation of the plugin after the installation of the SFDX CLI itself.
Describe alternatives you've considered
I could manually install the SFDX CLI and the plugins on the Jenkins server and not utilize the "custom tool" option, but then I would not be able to dynamically spin up slave Jenkins instances as needed.
Hello @ImJohnMDaniel
A workarround to this issue:
echo y | sfdx plugins:install sfpowerkit
@genoud -- Thanks for the tip. That is exactly what we ended up doing and what led to this feature request. ;-)
@genoud That saved my life - thanks!
@ImJohnMDaniel there's two other more elegant options I'd suggest.
plugins:link you don't get the code-signing check).unsignedPluginAllowList.json. More info about that file here here: https://developer.salesforce.com/blogs/2017/10/salesforce-dx-cli-plugin-update.html 1 is probably the better option for CI because your CI may get some npm-caching benefits and more granular control of which version of the plugin you're running.
@mshanemc, I'm on windows and this may be a more windows-specific problem but I've found that when I have a plugin linked then execution of all commands is slower as it seems to re-compile/process the linked plugins every time. I have never dug into the root cause, I just don't leave plugins linked as much as I used to.
(edited as I realized that solution was already provided above)
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments.
@mshanemc -- Apologies, I did not see your earlier comment from Dec 4, 2020. I am aware of both options that you are referring to in that post and neither are an option for me.
Just curious, why are you designating this as "wontfix". I would expect this to be an extremely small LOE -- Simply add the flag and put in an if/then statement.
Most helpful comment
Hello @ImJohnMDaniel
A workarround to this issue:
echo y | sfdx plugins:install sfpowerkit