Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OJET hooks and grunt

Luc BorsJan 21 2019 — edited Jan 22 2019

Hi,

I am working on getting my build from JET5.2 to JET6.1

Currently it is fully based on grunt cli, but while I am at it, I want to start using the ojet hooks to call my grunt stuff.

In my JET5.2 I have registered custom grunt tasks that do :

  1. grunt-bump to increase version
  2. grunt-exec to do ojet build --release
  3. grunt-replace to do some housekeeping
  4. grunt-war to create a proper war file that we need for server deployment

By calling "grunt build:release", everything is executed, and my app is ready for deployment.

In JET6.1 I would typically call "ojet build --release" and do 1 in the before-release-build, 3 and 4 in the after-build.

Is there any documentation regarding this? I mean, I know how to work with the hooks, but somehow I cannot get my grunt-bump and grunt-war scripts to run properly.

So the big question now is how I can properly call 1,3 and 4 from the hooks, including some custom OJET commandline parameters (if that is even possible).

I have read this post: , I understand the option 1 in it, but I want to go for option 2 and  it is not explaining how to make things work from the hooks (i.e. an example would be nice :-) )

many thanks for helping with this one.

Luc

Comments
Post Details
Added on Jan 21 2019
2 comments
475 views