Jenkins

Jenkins integration with SonarQube

Posted on

In this blog, we will do the Jenkins integration with SonarQube. This will help you to check the quality of code using an automated CI/CD pipeline job. Prerequisite Jenkins Installation Sonarqube Installation “Quality cannot be inserted afterwards, rather it must be part of the process.” As a good practice in a development team, it is […]

Please follow and like us:
Devops Tools

JenkinsPipeline for Terraform deployment

Posted on

This blog will help you to use the JenkinsPipeline for Terraform deployment Tools Used: Jenkins Github Terraform JenkinsPipeline for Terraform deployment pipeline { agent any stages { stage(‘checkout’) { steps { git url: ‘git@giturl’ } } stage(‘Set Terraform path’) { steps { script { def tfHome = tool name: ‘Terraform’ env.PATH = “${tfHome}:${env.PATH}” } sh […]

Please follow and like us:
Devops Tools

Terraform-SSH connection to EC2 instance

Posted on

This blog will help you if you need to enable the ssh connection to EC2 instance. Path to the SSH public key to be used for authentication. Ensure this keypair is added to your local SSH agent so provisioners can connect. ssh-keygen (Generate keys if not exist already) Adding your SSH key to the ssh-agent […]

Please follow and like us:
Terraform

Terraform Modules

Posted on

Modules This blog will help you to work with Terraform modules which helps in grouping multiple resources and how to use the module outputs across other modules Modules in Terraform are used to group multiple resource create a directory structure as shown below. We are creating separate folder structure for all the modules. Package structure as […]

Please follow and like us:
Ansible

Terraform-Dynamic Inventory

Posted on

How to get the Terraform-Dynamic Inventory for your ansible script This blog will help you to find out the Terraform-Dynamic Inventory like EC2 instance which is created automatically using Terraform. Now to do the deployment on this EC2 instance through ansible you need the details. Here, we will find out how we can put the host […]

Please follow and like us:
Jenkins

Integrate Selenium with Jenkins

Posted on

How to Integrate Selenium with Jenkins This blog will help you to Integrate Selenium with Jenkins. This will help you to run the selenium scripts using Jenkins automatically or as per your need. Requirement Download the sample code from github Maven Installation Setup with eclipse Download the sample code from github Clone the repository from here cd […]

Please follow and like us:
Jenkins

Jenkins Pipeline Examples

Posted on

Jenkins Pipeline Some examples for Jenkins Pipeline script . Jenkins Pipeline is used to create stages/pipeline of all the steps which are required for building the project. Examples: How to initialize software and set path stage(‘Terraform Init’) { steps { script { def tfHome = tool name: ‘Terraform’ def anHome = tool name: ‘Ansible’ env.PATH […]

Please follow and like us:
Jenkins

Jenkins Setup for PHP unit testing and selenium framework on AWS

Posted on

This blog will setup the unit testing framework and selenium testing framework for php application Login to your AWS EC2 Linux Instance Install Java : Click Here for more details wget –header “Cookie: oraclelicense=accept-securebackup-cookie” http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.rpm sudo yum localinstall jdk-8u171-linux-x64.rpm export JAVA_HOME=/usr/java/jdk1.8.0_171/ export JRE_HOME=/usr/java/jdk1.8.0_171/jre PATH=$PATH:$HOME/bin:$JAVA_HOME/bin export PATH sudo alternatives –config java Install Jenkins : Click here for more details sudo wget -O […]

Please follow and like us:
AWS

Cross Account Access on AWS

Posted on

I have two accounts ( sandbox and pipeline) On Sandbox account, Go IAM -> Roles -> Create ROle-> Select Another AWS acccount as shown below Put Pipeline account number Click Permissions -> Select any policy /custom policy -> Put Role name ->Create Role Below policy will auto created { “Version”: “2012–10–17”, “Statement”: [ { “Effect”: […]

Please follow and like us:
Devops Tools

Secure Database password using EC2 parameter store

Posted on

This blog will help you how to manage database password using E2 parameter store Steps:   IAM Policy IAM Role Encryption Keys Parameter Store EC2 Instance — Assume IAM role Install PHP SDK on AWS Configured php code to retrieve db credentials 1. IAM policy Open the AWS Console and navigate to IAM -> Policies and click Create policy. Next, […]

Please follow and like us: