satish8450 / Documents-AWS

Documents Listed her
0 stars 0 forks source link

Application Deployment Process #11

Open satish8450 opened 1 year ago

satish8450 commented 1 year ago

Prerequisite's

Jenkins Server which is having Docker and maven Installation Create k8s Cluster with Master and Worker node Create docker repository to push generated application Our sourcecode repository must have jenkins , Dockerfile, Depolyment.yml files these are mandatory files

Procedure

Create one job in Jenkins by using pipeline

Create pipeline syntax (Example) : pipeline { agent any stages { stage('Clone Repo') { steps { git branch: 'main', credentialsId: 'GIT_CREDENTIALS', url: 'https://github.com/satish8450/KubernetsDeployement.git' } } stage('Build') { steps { sh 'mvn clean package' } }
} }