Sunday, December 30, 2018

What is Jenkins?

Jenkins is actually a very simple job monitor, very much like NETBATCH in Tandem.(What else Tandem professional can say J ). There, You create jobs that run either on
  • a Calendar,
  • an Interval
  • OR Triggered by an external event.
What makes Jenkins is really useful, is the large set of plugins that have been written by Jenkins community.
PLUGINS
  • There are plugins that monitor GIT – so that when someone pushes code to GITHUB enterprise or Bitbucket server, a Jenkins job will automatically gets started.
  • There are SSH Plugins that allow you to run commands or even other parts of jobs on other systems.
  • There are packaging plugins, email plugins that send results to a team.
  • Hipchat plugins that can send a message to your phone when is job fails.
Jobs are run by executors like in NETBATCH.
How to setup?
  • Download the Jenkins WAR file
  • Run in using JAVA.
Don’t run Jenkins in user SUPER.SUPER.
Simple way of running:
Nohup Java $(JAVA_ARGS) \
-Djavax.net ssl.trustStore=$(JAVA_HOME)/jre/lib/security/cacerts \
-cp ./Jenkins.war main \
2>&1>> Jenkins.log &
Nohup is there, to make sure Jenkins does NOT step when your terminal session ends.
Note : Your Java Arguments may vary. Don’t just copy & Paste the above one.
Jenkins can run on multi platform systems too.