diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 000000000..59f28cb29 --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,21 @@ +pipeline { + agent any +environment { +PATH = "/opt/maven/bin:$PATH" +} + stages { + stage('Build') { + steps { + sh 'mvn clean install' + } + } + stage('SonarQube analysis') { + steps { + withSonarQubeEnv('sonarqube'){ + sh "mvn sonar:sonar" + } + } + } + } + + } diff --git a/pom.xml b/pom.xml index 85f2e2e2a..3cbffe3bd 100644 --- a/pom.xml +++ b/pom.xml @@ -1,29 +1,52 @@ - 4.0.0 - com.efsavage - hello-world-war - 1.0.0 - war - Hello World Web Application Repository - Simplest possible Java Webapp + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + com.efsavage + loginpage + 1.0.0 + war + Hello World Web Application Repository + Simplest possible Java Webapp - - - - org.mortbay.jetty - jetty-maven-plugin - 8.1.5.v20120716 - - 0 - - - - org.apache.maven.plugins - maven-war-plugin - 2.1.1 - - - + + + + org.eclipse.jetty + jetty-maven-plugin + 9.4.43.v20210629 + + 0 + + + + org.apache.maven.plugins + maven-war-plugin + 3.3.1 + + + - \ No newline at end of file + + + loginpage + http://13.233.8.54:8081/repository/loginpage/ + + + maven-snapshots + http://13.233.8.54:8081/repository/loginpage/ + + + + + + loginpage + loginpage + http://13.233.8.54:8081/repository/loginpage/ + + + + + UTF-8 + + + diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index ead0e510f..8bf3e844a 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -1,13 +1,58 @@ - + -Hello World! - - -

Hello World!

-

- It is now - <%= new java.util.Date() %>

-

- You are coming from - <%= request.getRemoteAddr() %>

- \ No newline at end of file + Login Page + + + +

Student Login Form

+
+
+ + + + + + Remember me + + Forgot password? +
+
+ +