-
Configure inbound traffic rules in your EC2 instance to allow inbound traffic to the instance
-
Cat /var/lib/jenkins/secrets/initialAdminPassword in your terminal to get the password
-
After installling the necessary plugins and finish you will reach the Jenkins Dashboard
-
Select New item to create Jenkins Pipeline and select Pipeline
-
Select pipeline script from SCM. We are using Git as our Source Code Manager for this project. The repository URL is https://github.com/bharatrajtj/jenkins
-
Script path is the path directory where the Jenkins file is located within the repository. The jenkinsfile and can be located in any path and jenkins file can be named as you wanted.
-
Go to Manage Jenkins > Plugins> Available plugins, search and install docker pipeline plugin to run docker as agents
-
Go to Manage Jenkins > Plugins> Available plugins, search and install SonarQube Scanner for code quality inspection
-
Add new user named SonarQube in the EC2 instance and switch to the new user
-
Download the sonar zip file wget https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-9.4.0.54424.zip
-
Install apt install unzip to unzip your zip file in the root user
-
SonarQube will run at port 9000, configure inbound rules to allow traffic from port 9000
-
Enter ec2 IP address:9000 in browser to reach sonarqube server page. Default user name and password for Sonar Qube is admin
-
In SonarQube page go to myAccount>Security and generate a token
-
In Jenkins Page go to ManageJenkins>Credentials>System>GlobalCredentials>AddCredentials
-
Grant Jenkins and Ubuntu user permission to access docker daemon and restart docker
-
Restart Jenkins to make sure the plugins installed will function properly. To restart jenkins after port number enter /restart
-
Running Minikube on my windows local machine through docker container in powershell
-
Installing ArgoCD operator to manage life cycle of Kubernetes controller – ArgoCD in minikube https://operatorhub.io/operator/argocd-operator-helm
-
For GitHub go to Settings—personal access tokens—Generate New token (classic) and create the token
-
In Jenkins use secret text kind for github credential and restart Jenkins once credentials are created
-
Modified sonarqube IP address, docker repository and Github repository values in the source code and commit changes
-
Create a yml file in your local machine and apply this content to install ArgoCD controller
-
Edit the service type from Cluster IP to NodePort for example-argocd-server
-
Get the password to argocd account by getting into argocd-cluster secret
-
Create application in argocd and configure required information
-
The spring boot application has been deployed in our minikube cluster through argocd
-
ArgoCD recognize that the image in manifest yml is different from the image executing on minikube cluster it starts to rollback to image mentioned in the manifest
-
Notifications
You must be signed in to change notification settings - Fork 0
bharatrajtj/jenkins
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
 |  | |||
 |  | |||
 |  | |||
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published