How to launch Java - continious integration jenkins in MegamVertice

May 09, 2016 Written by Vinothini Platform Developement Engineer


Jenkins is the leading open-source automation server. Built with Java, it provides over 1000 plugins to support automating virtually anything, so that humans can actually spend their time doing things machines cannot.

This tutorial will guide you in launching a J2EE web application () in MegamVertice.

wordpres button


You have to install openssh-server for ssh access.

sudo apt-get install openssh-server

Check SSH working properly

ps aux | grep sshd

In this tutorial you will see the steps to launch the J2EE using jenkins

Step-1 Fork jenkins

  • Fork jenkins from here

  • You will be see the fork option in the top right corner of the git hub the fork option.

  • The jenkins repository is forked into your git repository

Step-2 Launch the app

  • Go to MegamVertice Dashboard

  • Rember that when you select memory its upto 2GB

  • To know how to launch App click here

Buildpack for java

Java’s default build pack get’s going by kicking of maven. We plan to support ant, gradle in the future

filename=$(basename "$remote_repo")

  rm $local_repo/*.war
  cd $megam_home
  rm -r $filename
  git clone $remote_repo
  cd $filename
  mvn clean
  mvn install -Dmaven.test.skip=true -U
stop java
start java

Step-3 Access Web browser

  • You can access your web page by clicking the URL link in App Management Page

  • Then the below UI will be open

  • Select the Manager App.It asks User Name and Password Username and password is "megam"


These are the very simple steps to launch a J2EE web app (jenkins) using github repository.

Deploy Java app now

wordpres button