[root@localhost Flow]# alternatives –config java

There are 4 programs which provide ‘java’.

Selection    Command
*  1           /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
2           /usr/lib/jvm/jre-1.5.0-gcj/bin/java
3           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
+ 4           /opt/jdk1.8.0_45/bin/java

Enter to keep the current selection[+], or type selection number: 1
[root@localhost Flow]# java -version
java version “1.7.0_71”
OpenJDK Runtime Environment (rhel- u71-b14)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

Jenkins-Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted


Error validating server certificate for ‘‘:
– The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
– The certificate hostname does not match.
Certificate information:
– Hostname: MS
– Valid: from Thu, 14 May 2015 17:24:51 GMT until Sun, 11 May 2025 17:24:51 GMT
– Issuer: MS
– Fingerprint: ac:bb:e8:17:d1:91:06:d0:2c:e2:b4:b5:54:e3:bc:60:e5:d7:93:17
(R)eject, accept (t)emporarily or accept (p)ermanently? svn: OPTIONS of ‘‘: Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted (
Failed build for org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder@1bad6fe6


Go to machine where Jenkins is installed and issue svn checkout command as below:

[root@localhost tmp]# svn checkout –username=mitesh51

It will ask to accept Fingureprint permanently!


Configure artifactory in Jenkins. Go to Manage Jenkins -> Configure Syatem.

Provide, URL and credentials for Artifactory.

Go to specific build Job in Jenkins. In the Build Environment section, select Resolve artifacts from Artifactory.

Click on Refresh and select resolution releases repository.

2015-05-30 10_03_35-CounterApp Config [Jenkins]

In a Post-build step, select Deploy artifacts to Artifactory. Click on Refresh button.

Select Target Release repository and Target Snapshot repository.

2015-05-30 10_04_44-CounterApp Config [Jenkins]

Click on Override default deployer credentials and give credentials of User we created here.

2015-05-30 10_05_49-

Set any deployment properties if you want.

2015-05-30 10_07_20-CounterApp Config [Jenkins]

Build the Job. Observe that all .jar files are stored in Artifactory.

2015-05-30 14_27_11-

Once all jar files are downloaded, job will be successful .

2015-05-30 14_27_31-CounterArtifactoryTest #6 Console [Jenkins]

Verify lib-release directory from Artifactory. It will have all jar files required to build job.

2015-05-31 08_31_39-Index of libs-release_

Verify whether end product of Build job or WAR file is available in the Artifactory or not.

2015-05-31 08_32_01-Artifactory@MS __ Repository Browser