Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
17 changes: 17 additions & 0 deletions Documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Deployment 6: EC2s, Agents and Testing

### Objective; Orchestrate 3 EC2s so that one runs Jenkins, one runs a Java app, and one runs the testing suite. Use Jenkins to automate buildilng and testing.

### Step 1: Configuring the EC2s

Install the necessary dependencies on each EC2, and also install the Jenkins plugins that will permit them to work on its agents.

### Step 2: Constructing the Pipeline

Using the pipeline script, build a Jenkinsfile in the repo. Add the two agents to Jenkins, and insert their respective labels into the pipeline.

### Step 3: Find the locations of the various reports

In the `Screenshots` folder, you will find the requested screenshots.

![req_ss](Screenshots/requested_ss.png)
10 changes: 8 additions & 2 deletions kura_test_repo/Jenkinsfile → Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
pipeline {
agent any
agent {
label 'agent01'
}
stages {
stage ('Build') {
steps {
sh 'rm -rf ./kura_test_repo/cypress2'
sh '''
npm install
npm run build
sudo npm install -g serve
serve -s build &
'''
}
}
stage ('Second') {
agent {
label 'React-dev'
label 'agent02'
}
steps {
sh '''
Expand All @@ -29,3 +34,4 @@ pipeline {
}
}
}

16 changes: 0 additions & 16 deletions README.md

This file was deleted.

Binary file added Screenshots/Location of Image Test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/Location of Video Test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Screenshots/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# DEPLOY6_FE

In this repo you'll find 5 screenshots.

**Successful Build**
This is the ss for the successful build using two agents and a Jenkins master.

**Unsuccessful Build**
This is the ss for the successful build using two agents and a Jenkins master, due to a failed test.

**Successful + Uncessful Build**
This is the ss showing both of these builds in the project page.

**Location of Image Test**
This ss shows the path to the file.

**Location of Video Test**
This ss shows the path to the file.
Binary file added Screenshots/Successful + Uncessful Build.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/Successful Build.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/Unsucessful Build.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/requested_ss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion kura_test_repo/cypress.json → cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"reporterOptions": {
"mochaFile": "results/cypress-report.xml",
"toConsole": true
}
},
"integrationFolder": "./cypress/integration",
"testFiles": "**.spec.js"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
describe('Heading', () => {
it('has the right title', () => {
cy.visit('http://172.31.31.38:5000/example-1')
cy.visit('http://172.31.16.172:5000/example-1')

cy.get('h1')
.invoke('text')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
68 changes: 0 additions & 68 deletions kura_test_repo/README.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ export const Example1Page = () => (
<Wrapper>
<h1>My Awesome Web Application</h1>
</Wrapper>
);
);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.