Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CICDTest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Perwaiz Ali
CICDTest
Commits
0d9e6554
Commit
0d9e6554
authored
Aug 28, 2022
by
Perwaiz Ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change in .git
parent
63684657
Pipeline
#2185
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
.gitlab-ci.yml
.gitlab-ci.yml
+14
-3
pom.xml
pom.xml
+7
-2
No files found.
.gitlab-ci.yml
View file @
0d9e6554
stages
:
-
build
-
build
-test
-
deploy
maven-build
:
tags
:
-
docker
image
:
maven:3-jdk-11
image
:
maven:3-jdk-11
stage
:
build
script
:
"
mvn
package
-B"
artifacts
:
paths
:
-
target/CICDTesting-0.0.1-SNAPSHOT.jar
\ No newline at end of file
-
target/CICDTesting-0.0.1-SNAPSHOT.jar
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
pom.xml
View file @
0d9e6554
<?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>
CICDTesting
</artifactId>
...
...
@@ -22,6 +23,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-web-services
</artifactId>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment