Slide 1
Most trusted JOB oriented professional program
DevOps Certified Professional (DCP)

Take your first step into the world of DevOps with this course, which will help you to learn about the methodologies and tools used to develop, deploy, and operate high-quality software.

Slide 2
DevOps to DevSecOps – Learn the evolution
DevSecOps Certified Professional (DSOCP)

Learn to automate security into a fast-paced DevOps environment using various open-source tools and scripts.

Slide 2
Get certified in the new tech skill to rule the industry
Site Reliability Engineering (SRE) Certified Professional

A method of measuring and achieving reliability through engineering and operations work – developed by Google to manage services.

Slide 2
Master the art of DevOps
Master in DevOps Engineering (MDE)

Get enrolled for the most advanced and only course in the WORLD which can make you an expert and proficient Architect in DevOps, DevSecOps and Site Reliability Engineering (SRE) principles together.

Slide 2
Gain expertise and certified yourself
Azure DevOps Solutions Expert

Learn about the DevOps services available on Azure and how you can use them to make your workflow more efficient.

Slide 3
Learn and get certified
AWS Certified DevOps Professional

Learn about the DevOps services offered by AWS and how you can use them to make your workflow more efficient.

previous arrow
next arrow

Can We Change Setting In Jenkins As It Picks Desire Version Of Java.

Namit created the topic: Can we change setting in Jenkins as it picks desire version of Java.
In my Linux server i do have two version of Java (Java 1.6 and Java 1.8), few applications which are running on this server is using Java 1.6, so i cann’t change this setting but i want when i start jenkins service it should pick java 1.8 instead of java 1.6 as for jenkins Java 7 or more is require. Is there any way to fix this problem.

[root@rpc1372 run]# ls -l /usr/bin/java
lrwxrwxrwx 1 root root 30 Jun 15 2014 /usr/bin/java -> /usr/java/jdk1.6.0_19/bin/java

[root@rpc1372 run]# java -version
java version “1.6.0_19”
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)

rajeshkumar replied the topic: Can we change setting in Jenkins as it picks desire version of Java.
There are basically 2 way –
Method 1: Modify the “jenkins” file under /etc/init.d

[root@chef-server init.d]# pwd
/etc/init.d
[root@chef-server init.d]# more jenkins | grep -i java
# Search usable Java. We do this because various reports indicated
# that /usr/bin/java may not always point to Java >= 1.6
/etc/alternatives/java
/usr/lib/jvm/java-1.6.0/bin/java
/usr/lib/jvm/jre-1.6.0/bin/java
/usr/lib/jvm/java-1.7.0/bin/java
/usr/lib/jvm/jre-1.7.0/bin/java
/usr/lib/jvm/java-1.8.0/bin/java
/usr/lib/jvm/jre-1.8.0/bin/java
/usr/bin/java
[ -x "$JENKINS_JAVA_CMD" ] && break
JENKINS_JAVA_CMD="$candidate"
JAVA_CMD="$JENKINS_JAVA_CMD $JENKINS_JAVA_OPTIONS -DJENKINS_HOME=$JENKINS_HOME -jar $JENKINS_WAR"
daemon --user "$JENKINS_USER" --pidfile "$JENKINS_PID_FILE" $JAVA_CMD $PARAMS > /dev/null

Method 2: Start jenkins using the java which you want manually

. Follow this article
wiki.jenkins-ci.org/display/JENKINS/Star…nd+Accessing+Jenkins
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Rajesh Kumar
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x