diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..2ae249b --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,38 @@ +pipeline { + agent any + + stages { + stage('Checkout') { + steps { + checkout scm + } + } + + stage('Build') { + steps { + sh 'mvn package' + } + } + + stage('Test') { + steps { + sh 'mvn test' + } + } + + stage('Upload Artifact') { + steps { + sh ''' + cd target + aws s3 cp WebAppCal-*.war s3://proj-1-bucket-ay/ + ''' + } + } + + stage('Deploy') { + steps { + echo 'Deploying...' + } + } + } +} diff --git a/pom.xml b/pom.xml index 9e1759e..4e41947 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.web.cal WebAppCal war - 0.0.6 + 0.0.7 WebAppCal Maven Webapp http://maven.apache.org @@ -21,10 +21,23 @@ 2.5 - - - releases - http://52.204.135.48:8081/nexus/content/repositories/releases - - - + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.11.0 + + 17 + 17 + + + + org.apache.maven.plugins + maven-war-plugin + 3.3.2 + + + + \ No newline at end of file