0% found this document useful (0 votes)
15 views24 pages

Devops Output (1) Removed

Devops

Uploaded by

epremkumar24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views24 pages

Devops Output (1) Removed

Devops

Uploaded by

epremkumar24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

| CCS342 – DEVOPS

Step 6: We need to create the Artifactory and GitHub connections as below. These will be used
to authenticate Azure DevOps with Artifactory and also the maven which will be used in the
tasks.

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

For Artifactory, please fill in the following details and verify the connection. If it’s successful,
save the same.

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

Step 7: As a next step run the build by clicking the run button.

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

Ex. No.: 2 RUN REGRESSION TESTS USING


Date: MAVEN BUILD PIPELINE IN AZURE

OUTPUT:

Sample 1:

Step 1: Create new resource, select go to resource.

Step 2: In Azure Load Testing resource, select Tests and Select Upload a JMeter Script option
and upload a test script.

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

Step 3: On the Basics tab, enter the Test name and Test description information.

Sample 2:

Step 1: In the Azure portal, go to your Azure Load Testing resource.

Step 2: In the left navigation, select Tests to view all tests.

Step 3: Select + Create, and then select Upload a JMeter script.

Step 4: On the Basics tab, enter the load test details: Test name, Test description, and
Run test after creation.

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

Step 5: On the Test plan tab, select your Apache JMeter scripts, and then select Upload to upload
the files to Azure. In case you have multiple JMeter scripts, specify the main test script from
which the execution should begin in File relevance.

Step 6: Select Review + create. Review all settings, and then select Create to create the load test.

Step 7: Go to your load testing resource, select Tests from the left pane, and then select the test
that you created earlier.

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

Step 8: On the test details page, select Run or Run test. Then, select Run on the confirmation
pane to start the load test. Optionally, provide a test run description.

Step 9: Notice the test run details, statistics, and client metrics in the Azure portal.

If you have multiple requests in your test script, the charts display all requests, and you can also
filter for specific requests.

Ex. No.: 3 INSTALL JENKINS IN CLOUD


Date:
GRT Institute of Engineering and Technology, Tiruttani Page |
| CCS342 – DEVOPS

OUTPUT:
Step 1: Configure your environment
 Azure subscription: If you don't have an Azure subscription, create a free account
before you begin.

Step 2: Open Cloud Shell


 If you already have a Cloud Shell session open, you can skip to the next section.
 Browse to the Azure portal
 If necessary, log in to your Azure subscription and change the Azure directory.
 Open Cloud Shell.

 If you haven't previously used Cloud Shell, configure the environment and storage
settings.
 Select the command-line environment.

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

 Enter the information for the first admin user and select Save and Continue.

 On the Instance Configuration page, select Save and Finish.

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

 Select Start using Jenkins.

Ex. No.: 4 CREATE CI PIPELINE USING JENKINS


Date:

OUTPUT:
Step 1: To create a new Jenkins job, click the New Item icon on the left side of the Jenkins
dashboard.

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

 Go to the end of the page and tap on the button “Commit new file”.

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

 On the configuration screen, select the General tab, and then select the GitHub project
box. The Project URL should then be updated to include the URL you obtained from
the repository.

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

 Select the “GitHub hook trigger for GITScm polling” in the Build Triggers section, as
seen in the picture below.

Configure a Pipeline Job with SCMScript


 If you are specifically configuring with the SCMScript, go to the Pipeline section and
make the following selections/specifications there:
 In Definition box, select: Pipeline script from SCM
 SCM box, select: Git
 Repository URL box, enter: Your git repository URL
 In Branches to Build section, write “*/*” in the branch specifier field.

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

 Executing the Jenkins CI/CD Pipeline Job


 Click on the “Build Now” option to begin the build procedure and create the initial build
data.

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

Ex. No.: 6 CREATE AN ANSIBLE PLAYBOOK FOR


Date: A SIMPLE WEB APPLICATION INFRASTRUCTURE

OUTPUT:

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

Ex. No.: 7 BUILD A SIMPLE APPLICATION USING GRADLE


Date:

OUTPUT:

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

plugins {
id 'java'
id 'application'
}
repositories {
jcenter() //public bintray artifactory repository
}
dependencies {
implementation '[Link]:guava:27.1-jre'
//Google Guava Library
testImplementation 'junit:junit:4.12' //JUnit testing library
}
application {
mainClassName = 'Java_application.App'
// class with the main method used by Gradle plugin
}

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

GRT Institute of Engineering and Technology, Tiruttani Page |


| CCS342 – DEVOPS

Ex. No.: 8 INSTALL ANSIBLE AND CONFIGURE ANSIBLE ROLES


Date: AND TO WRITE PLAYBOOKS

GRT Institute of Engineering and Technology, Tiruttani Page |

You might also like