1

I'm completely new to OpenShift and so far ran in hundreds of bugs while trying to create my first application. Now I want to configure Maven to use my own goals. So far I tried:

  • adding a Jenkins and configuring the Maven Build - the Jenkins didn't take up the changes and finally stopped building altogether
  • adding a file .openshift/action_hook/pre_build with the content export MAVEN_ARGS="clean package -Popenshift" as explained here
  • adding a file .openshift/action_hook/build with the content mvn clean package -Popenshift as explained there

Evidently, the documentation is somewhat obsolete... so what is the correct way?

Stefan S.
  • 3,950
  • 5
  • 25
  • 77

1 Answers1

0

I finally managed to get the Jenkins to build with my goals. The misconception was that it would use the configured Maven goals INSTEAD of the default ones, when it would just use them additionally (he never had to, since the shell script failed). So deleting the script and adding a custom Maven build works.

Stefan S.
  • 3,950
  • 5
  • 25
  • 77