Skip to content
27 changes: 27 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
pipeline {
agent any

stages {
stage('Build') {
steps {
// Get some code from a GitHub repository
git 'https://github.com/hariharanep4/maven-helloworld.git'

// Run Maven on a Unix agent.
sh "/usr/share/maven/bin/mvn clean package"

// To run Maven on a Windows agent, use
// bat "mvn -Dmaven.test.failure.ignore=true clean package"
}

post {
// If Maven was able to run the tests, even if some of the test
// failed, record the test results and archive the jar file.
success {
junit '**/target/surefire-reports/TEST-*.xml'
archiveArtifacts 'webapp/target/*.war'
}
}
}
}
}
1 change: 0 additions & 1 deletion README.md

This file was deleted.

5 changes: 3 additions & 2 deletions webapp/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
<html>
<body style="background-color:powderblue;">

<h1>I love SkillRary.com</h1>
<p>This is our DevOps class</p>
<h1>My name is Hariharan EP...</h1>
<p>Juice</p>

<iframe src="https://skillrary.com" width="800" height="600">
<p>Your browser does not support iframes.</p>
<p>Your browser does not support iframes.</p>
</iframe>

</body>
Expand Down