Try modifying that to

<exec command="cmd">
    <arg>/c</arg>
    <arg>grails</arg>
    <arg>-Dgrails.env=wlprod</arg>
    <arg>war</arg>
     <runif status="passed" />
</exec>

On Wed, Aug 3, 2016 at 6:55 PM <[email protected]> wrote:

> Hey Zabil
> here my setting.
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <cruise xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:noNamespaceSchemaLocation="cruise-config.xsd" schemaVersion="81">
>   <server artifactsdir="artifacts" commandRepositoryLocation="default"
> serverId="bbef7970-71a1-491c-ab1e-9565ff204c2d" />
>   <pipelines group="defaultGroup">
>     <pipeline name="MyFristPipeLine" isLocked="false">
>       <materials>
>         <git url="https://xxxxxx.git"; branch="dev" />
>       </materials>
>       <stage name="test">
>         <jobs>
>           <job name="test">
>             <tasks>
>               <exec command="cmd">
>                 <arg>grails -Dgrails.env=wlprod war</arg>
>                 <runif status="passed" />
>               </exec>
>             </tasks>
>             <resources>
>               <resource>windows</resource>
>               <resource>dev</resource>
>             </resources>
>           </job>
>         </jobs>
>       </stage>
>     </pipeline>
>   </pipelines>
>   <agents>
>     <agent hostname="Mehran-PC" ipaddress="192.168.1.7"
> uuid="338ccc72-a3c5-45bf-b300-f9c0b3268676">
>       <resources>
>         <resource>dev</resource>
>         <resource>windows</resource>
>       </resources>
>     </agent>
>   </agents>
> </cruise>
>
>
> Thanks
>
> On Wednesday, August 3, 2016 at 12:28:13 AM UTC-4, Zabil C M wrote:
>
>> Hey Mehran,
>>  Can you share the saved xml configuration for this task (the section
>> with the <exec> tag) or a screen shot of how you've configured it on the UI?
>>
>> Thanks.
>>
>> On Wed, Aug 3, 2016 at 8:48 AM <[email protected]> wrote:
>>
> I have a grails/groovy project. Regularly I open a cmd/terminal in the
>>> main project dir, and "grails -Dgrails.env=xxx war" will create the war
>>> file for me.
>>>
>>> In GOCD I setup a pipeline but can't get the command grails triggered
>>> from the "Edit Custom Command task" popup. Has anybody experience with GOCD
>>> and grails.
>>>
>>> Thanks,
>>> Mehran
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "go-cd" group.
>>>
>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to [email protected].
>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to