Commit 0d9e6554 authored by Perwaiz Ali's avatar Perwaiz Ali

change in .git

parent 63684657
Pipeline #2185 failed
stages: stages:
- build - build
-test
- deploy - deploy
maven-build: maven-build:
tags: tags:
- docker - docker
image: maven:3-jdk-11 image: maven:3-jdk-11
stage: build stage: build
script: "mvn package -B" script: "mvn package -B"
artifacts: artifacts:
paths: paths:
- target/CICDTesting-0.0.1-SNAPSHOT.jar - target/CICDTesting-0.0.1-SNAPSHOT.jar
\ No newline at end of file
Smoke test :
stage: test
image: maven:3-jdk-11
before_script:
- apk --no-cache add curl
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
<?xml version="1.0" encoding="UTF-8"?> <?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"> 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> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.3</version> <version>2.7.3</version>
<relativePath/> <!-- lookup parent from repository --> <relativePath /> <!-- lookup parent from repository -->
</parent> </parent>
<groupId>com.example</groupId> <groupId>com.example</groupId>
<artifactId>CICDTesting</artifactId> <artifactId>CICDTesting</artifactId>
...@@ -22,6 +23,10 @@ ...@@ -22,6 +23,10 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web-services</artifactId> <artifactId>spring-boot-starter-web-services</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