4 Replies Latest reply on Dec 15, 2017 7:15 AM by Sanne Grinovero

    Applying a patch from single-shot CLI

    Sanne Grinovero Master

      Hi all, I'm attempting to embed the installation of a WildFly Patch (as created by patch-gen-maven-plugin) automatically during a build on a WildFly 11.0.0.Final server.

       

      If I run:

        wildflyhome/bin/jboss-cli.sh patch apply location/custom.zip

      I get this error message:

      'apply' is assumed to be a command(s) but the commands to execute have been specified by another argument: [patch]

       

      If I try making it more explicit:

        wildflyhome/bin/jboss-cli.sh --command patch --action apply --path location/custom.zip

       

      I get the same error.

       

      If I connect to the CLI interactively and then type just:

        [disconnected /]  patch apply location/custom.zip

       

      then it will work just fine, but I can't use this to automate our builds. Any suggestions please?