Commit fff69747 authored by Perwaiz Ali's avatar Perwaiz Ali

change in .git

parent 1486bf75
Pipeline #2194 canceled with stages
...@@ -22,3 +22,29 @@ maven-build: ...@@ -22,3 +22,29 @@ maven-build:
paths: paths:
- target/CICDTesting-0.0.1-SNAPSHOT.jar - target/CICDTesting-0.0.1-SNAPSHOT.jar
----------------------------------------------------------------
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
- sleep 30
- curl http://localhost:8080/actuator/health | grep "UP"
\ No newline at end of file
...@@ -21,4 +21,4 @@ Smoke test : ...@@ -21,4 +21,4 @@ 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
\ No newline at end of file \ No newline at end of file
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