Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Show Demo
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
Show Demo
Commits
a4a52951
Commit
a4a52951
authored
Sep 01, 2022
by
Perwaiz Ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.git-ci.yml changes
parent
16be29ac
Pipeline
#2219
failed with stages
in 2 minutes and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
.gitlab-ci.yml
.gitlab-ci.yml
+13
-13
pom.xml
pom.xml
+7
-3
No files found.
.gitlab-ci.yml
View file @
a4a52951
...
@@ -7,12 +7,22 @@ stages:
...
@@ -7,12 +7,22 @@ stages:
maven-build
:
maven-build
:
tags
:
tags
:
-
runner
-
runner
image
:
maven:3-jdk-11
image
:
openjdk:12-alpine
stage
:
build
stage
:
build
script
:
"
mvn
package
-B"
script
:
"
mvn
package
-B"
artifacts
:
artifacts
:
paths
:
paths
:
-
target/ShowDemo_1-0.0.1-SNAPSHOT.jar
-
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
:
test-code-job1
:
tags
:
tags
:
...
@@ -33,7 +43,7 @@ unit tests:
...
@@ -33,7 +43,7 @@ unit tests:
tags
:
tags
:
-
docker
-
docker
stage
:
test
stage
:
test
image
:
maven:3-jdk-11
image
:
openjdk:12-alpine
script
:
script
:
-
mvn test
-
mvn test
artifacts
:
artifacts
:
...
@@ -54,15 +64,5 @@ deploy:
...
@@ -54,15 +64,5 @@ deploy:
script
:
script
:
-
aws configure set region ap-south-1
-
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
-
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
pom.xml
View file @
a4a52951
<?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>
ShowDemo_1
</artifactId>
<artifactId>
ShowDemo_1
</artifactId>
...
@@ -21,7 +22,10 @@
...
@@ -21,7 +22,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-test
</artifactId>
<artifactId>
spring-boot-starter-test
</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