Commit fff69747 authored by Perwaiz Ali's avatar Perwaiz Ali

change in .git

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