Commit a4a52951 authored by Perwaiz Ali's avatar Perwaiz Ali

.git-ci.yml changes

parent 16be29ac
Pipeline #2219 failed with stages
in 2 minutes and 32 seconds
......@@ -7,12 +7,22 @@ stages:
maven-build:
tags:
- runner
image: maven:3-jdk-11
image: openjdk:12-alpine
stage: build
script: "mvn package -B"
artifacts:
paths:
- target/ShowDemo_1-0.0.1-SNAPSHOT.jar
Smoke test :
tags:
- docker
stage: test
image: openjdk:12-alpine
script:
- java -jar ./target/ShowDemo_1-0.0.1-SNAPSHOT.jar &
- sleep 30
- curl http://localhost:8080/actuator/health | grep "UP"
test-code-job1:
tags:
......@@ -33,7 +43,7 @@ unit tests:
tags:
- docker
stage: test
image: maven:3-jdk-11
image: openjdk:12-alpine
script:
- mvn test
artifacts:
......@@ -54,15 +64,5 @@ deploy:
script:
- aws configure set region ap-south-1
- aws s3 cp ./target/ShowDemo_1-0.0.1-SNAPSHOT.jar s3://$S3_BUCKET/ShowDemo_1-0.0.1-SNAPSHOT.jar
pages:
tags:
- docker
stage: publishing
script:
- mkdir public
- mv newman/report.html public/index.html
artifacts:
paths:
- public
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.3</version>
<relativePath/> <!-- lookup parent from repository -->
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>ShowDemo_1</artifactId>
......@@ -21,7 +22,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
......
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