Commit 7445c284 authored by Perwaiz Ali's avatar Perwaiz Ali

change in .git-yml

parent 41afb1e2
Pipeline #2201 failed with stages
in 1 minute and 1 second
...@@ -47,4 +47,44 @@ Smoke test : ...@@ -47,4 +47,44 @@ Smoke test :
script: script:
- java -jar ./target/CICDTesting-0.0.1-SNAPSHOT.jar - java -jar ./target/CICDTesting-0.0.1-SNAPSHOT.jar
- sleep 30 - sleep 30
- curl http://localhost:8080/actuator/health | grep "UP" - curl http://localhost:8080/actuator/health | grep "UP"
\ No newline at end of file
------------------------------------------------------------------------
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
Smoke test :
tags:
- docker
stage: test
image: maven:3-jdk-11
script:
- java -jar ./target/CICDTesting-0.0.1-SNAPSHOT.jar
deploy:
tags:
- docker
stage: deploy
image:
name: amazon/aws-cli
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
...@@ -12,15 +12,7 @@ maven-build: ...@@ -12,15 +12,7 @@ maven-build:
artifacts: artifacts:
paths: paths:
- target/CICDTesting-0.0.1-SNAPSHOT.jar - target/CICDTesting-0.0.1-SNAPSHOT.jar
Smoke test :
tags:
- docker
stage: test
image: maven:3-jdk-11
script:
- java -jar ./target/CICDTesting-0.0.1-SNAPSHOT.jar
deploy: deploy:
......
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