Commit 7cf21c91 authored by Perwaiz Ali's avatar Perwaiz Ali

change in .git-yml

parent 8752b589
Pipeline #2205 passed with stages
in 1 minute and 12 seconds
...@@ -88,3 +88,34 @@ deploy: ...@@ -88,3 +88,34 @@ deploy:
script: script:
- aws configure set region ap-south-1 - aws configure set region ap-south-1
- aws s3 cp ./target/CICDTesting-0.0.1-SNAPSHOT.jar s3://$S3_BUCKET/CICDTesting-0.0.1-SNAPSHOT.jar - aws s3 cp ./target/CICDTesting-0.0.1-SNAPSHOT.jar s3://$S3_BUCKET/CICDTesting-0.0.1-SNAPSHOT.jar
----------------------------------------------------------------------------------------------------------
Working structure
stages:
- build
- test
- deploy
maven-build:
tags:
- docker
image: maven:3-jdk-11
stage: build
script: "mvn package -B"
artifacts:
paths:
- target/CICDTesting-0.0.1-SNAPSHOT.jar
deploy:
tags:
- docker
stage: deploy
image:
name: banst/awscli
entrypoint: [""]
script:
- aws configure set region ap-south-1
- aws s3 cp ./target/CICDTesting-0.0.1-SNAPSHOT.jar s3://$S3_BUCKET/CICDTesting-0.0.1-SNAPSHOT.jar
\ No newline at end of file
...@@ -17,6 +17,12 @@ public class ControllerTest { ...@@ -17,6 +17,12 @@ public class ControllerTest {
return "Hello CI/CD Test"; return "Hello CI/CD Test";
} }
@RequestMapping("/test-2")
public String testMessage2() {
return "Hello CI/CD Test-2";
}
@RequestMapping("/AllUsers") @RequestMapping("/AllUsers")
public List<User> allUsers() { public List<User> allUsers() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment