Posted: July 5, 2015 in Uncategorized
[root@localhost Flow]# alternatives –config java
There are 4 programs which provide ‘java’.
* 1 /usr/lib/jvm/jre-1.7.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-18.104.22.168.el6_6-x86_64 u71-b14)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
Posted: June 9, 2015 in DevOps, Jenkins
Jenkins-Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted
Error validating server certificate for ‘https://192.168.1.12:443‘:
– The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
– The certificate hostname does not match.
– 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 ‘https://192.168.1.12/svn/JenkinsTest/trunk/settletest‘: Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted (https://192.168.1.12)
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 https://192.168.1.12/svn/MS/WorkflowMagt –username=mitesh51
It will ask to accept Fingureprint permanently!
Posted: May 31, 2015 in Artifactory, DevOps, Jenkins
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.
In a Post-build step, select Deploy artifacts to Artifactory. Click on Refresh button.
Select Target Release repository and Target Snapshot repository.
Click on Override default deployer credentials and give credentials of User we created here.
Set any deployment properties if you want.
Build the Job. Observe that all .jar files are stored in Artifactory.
Once all jar files are downloaded, job will be successful .
Verify lib-release directory from Artifactory. It will have all jar files required to build job.
Verify whether end product of Build job or WAR file is available in the Artifactory or not.