Skip to main content

AA-2-Valaxy DevOps Project

AA-2-Valaxy DevOps Project

8.Jenkins Installation & Configuration on AWS EC2 instance

.............
.................................................................................................................

...................................................................................................


1. Red Hat Enterprise Linux from AWS... FREE Tier..

2.install Java and Set Path
sudo su -
yum update -y
yum install java-1.8.0-openjdk -y  or   yum install java-1.8* -y
( http://openjdk.java.net/install/ )
java -version
ls
ls -la
..under root...
vi .bash_profile
or yum install nano , and try.. nano .bash_profile

find /usr/lib/jvm/java-1.8* | head -n 3

/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el8_1.x86_64
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el8_1.x86_64
PATH=$PATH:$JAVA_HOME:$HOME/bin

... save nano file ... cntol+0 , Enter, cntrol+x

 echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin

login to new terminall.. try...
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el8_1.x86_64:/root/bin:/root/bin



3.INSTALLING JENKINES..
yum install wget -y

(go web sit   https://pkg.jenkins.io/redhat/) --- https://pkg.jenkins.io/redhat/

sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo

sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

yum install jenkins -y
service jenkins status
service jenkins start
service jenkins status


4.configuration..

.Open Port no..8080 in SG..

.username : admin
 cat /var/lib/jenkins/secrets/initialAdminPassword

.Change admine passord..
configure Jenkinses- user-configure-Password-NAVEEN143@k  -apply -save..


.Configure Java Path in Jenkines..

Manage Jenkines-Globle Toll Config
find / -name javac  in cmd finding location..
{yum install java-1.7.0-openjdk-devel

 find / -name javac
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.211-2.6.17.1.el7_6.x86_64 }

name : java
java_HOME : /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.211-2.6.17.1.el7_6.x86_64


.........
create a job Hello-World..
Build-excute Shell

echo "WELCOM TO DEVOPS NAVEEN TUTORIALS"

Apply -Save-Build now -
BLUE-Sucess..
Read- Failure


.........

https://github.com/miztiik/DevOps-Demos/blob/master/setup-jenkins/README.MD
.........

Comments

Popular posts from this blog

43-Dev-git cmds

43-Dev-git cmds Harsha Veerapalli... .git clone https://github.com/username/repository  git clone https://github.com/NAVEENMJ/1 git status .git init .git status ... getting red cloure  ( a.txt ) .git add file.txt or  (git add .) .git push .git push -u origin master .................. .git branch ---list of branches .git checkout -b branch ...Creaing branches .git merge branch ... presnt in master then merge.. ................................... .git status .git init .git status ... getting red cloure  ( a.txt ) .git add file.txt .git status .... getting green cloure  ( new file: a.txt) [if multipull files in folder use git add .] .git commit -m "COMMIT-1" .. Hear COMMIT-1 Means giving name in genralli changed  name given .git log ......changes ...times.. modifi that file a.txt...... .git status .git add . .git status .git commit -m "COMMIT-2" .cls .git log ..........i want go before comited version....

Azure Devops tutorial

 Azure Devops tutorial: web sit-  Projects - Home (azure.com) AZURE DEVOPS - Organization - Projects Under project- --------- Under Pipelines ---> Pipelines( CI ) -  Under Pipelines --->Releases( CD ) -  ------------------------------------------------------------------------------------------------------------------------- Azure Pipelines:--- Pipeline structure:- A pipeline is one or more stages that describe a CI/CD process. Stages are the major divisions in a pipeline. The stages "Build this app," "Run these tests," and "Deploy to preproduction" are good examples. A stage is one or more jobs, which are units of work assignable to the same machine. You can arrange both stages and jobs into dependency graphs. Examples include "Run this stage before that one" and "This job depends on the output of that job." A job is a linear series of steps. Steps can be tasks, scripts, or references to external templates. This hierarchy is refle...

42-AWS-PROJECT-CERTIFATION

42-AWS-PROJECT-CERTIFATION ... GOOGLE....aws 6r..... 1. 2. 3. 4. 5. 6. PRE SALE -POST SALE::: DPR: Detailed PROJECT REPORT. RFI : REQUSTE FOR INF. RFP : REQUEST FOR PROPEROSAL RFQ : REQ     FOR QOOTE POC: PROOF OF CONCEPT HLD: HIGH LEVEL DEGINE  CEO,LEVEL,  HIG LEVEL DIAGROM LLD: LOW LEVEL DEGINE  .. AWS , VPC, ...... BUILD SHETT: FULL DETIALS OF IP NO.. ALL PIN TO PIN UAT: USER ACCEPTANCEY TEST ORT: OPERATION REDINESS TEST SING OFF : REMAINING AMOUT COLLECT CLOSE ARCHITECTURE: AWS CERTIFICATION: Jayandra Patil AWS .............. AWS sysops bluprint