Actually I already have application with java as a backend and backbonejs app as frontend. Both are completely separate. Now I have introduced grunt tasks in my front end which I need to be executed before packaging war file. So that packaged war files have files generated by grunt task.
Locally I can execute grunt tasks from maven.
But for deployment we have been using cloudbees. I tried searching on internet but I haven't got any solution. Though I have gone through a question "How do I get a grunt task working with a Cloudbees Jenkins build" and also through documentation but still I am clueless.
My guess is I need to run grunt tasks post build as a shell script.
So how to setup node.js environment for existing maven project on cloudbees?