CICD Pipeline Java
CICD Pipeline Java
NOTE: MAKE SURE YOU ARE HAVING PASSWORDLESS LOGIN FROM JENKINS TO ALL APPLICATION
SERVERS
Once done with the above installation we are going to configure the build job as part of the jenkins using our
maven !!!
NOTE:
First hit the url "http://www-eu.apache.org/dist/tomcat/tomcat-8/" get the version and change the variable
"Version" to the latest version number in the below execution.
Installation::
wget http://www-eu.apache.org/dist/tomcat/tomcat-8/v${Version}/bin/apache-tomcat-${Version}.tar.gz
tar xvfz apache-tomcat-${Version}.tar.gz
mv apache-tomcat-${Version}.tar.gz /tmp/
mv apache-tomcat-${Version}/ tomcat8
cd tomcat8/conf/
vim server.xml
:%s/8080/80/g
cd ..
bin/startup.sh
netstat -nap|grep :80
cd /root/tomcat8/webapps/manager/META-INF
Keep the context.xml file with below data ( Insimple please remove the "value" part)
http://www.apache.org/licenses/LICENSE-2.0
[root@jenkins META-INF]#
Hint:: use: :%s/\t//g for replacing wide tab spaces !!
Configuring user :
cd /root/tomcat8/conf
vim tomcat-users.xml
add the below content.
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="dvsdevops" password="dvsdevops" roles="manager-gui,manager-script"/>
/root/tomcat8/bin/shutdown.sh
/root/tomcat8/bin/startup.sh
Now try to access the site using your user "dvsdevops" & password "dvsdevops"
9a0c33a5d0d7438ebe83c22c8a697f76
mvn --version
Note:
Enable the webhooks for Push & Pullrequest triggers
Note: Make sure that you are clicking on githubwebhook poll scm option.
Note: When you are executing the above just change the hosts names as part of your hosts file & change the
deployment code (myweb.yml) file accordingly !!