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
9c0ecdfc
Commit
9c0ecdfc
authored
Sep 01, 2022
by
Perwaiz Ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.git-ci.yml changes
parent
a533f36e
Pipeline
#2216
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
1 deletion
+64
-1
.gitlab-ci - Backup.yml
.gitlab-ci - Backup.yml
+55
-0
.gitlab-ci.yml
.gitlab-ci.yml
+9
-1
No files found.
.gitlab-ci - Backup.yml
0 → 100644
View file @
9c0ecdfc
stages
:
-
build
-
test
-
deploy
maven-build
:
tags
:
-
runner
image
:
maven:3-jdk-11
stage
:
build
script
:
"
mvn
package
-B"
artifacts
:
paths
:
-
target/ShowDemo_1-0.0.1-SNAPSHOT.jar
test-code-job1
:
tags
:
-
docker
stage
:
test
script
:
-
echo "If the files are built successfully, test some files with one command:"
test-code-job2
:
tags
:
-
docker
stage
:
test
script
:
-
echo "If the files are built successfully, test other files with a different command:"
unit tests
:
tags
:
-
docker
stage
:
test
image
:
maven:3-jdk-11
script
:
-
mvn test
artifacts
:
when
:
always
paths
:
-
target/tests
reports
:
junit
:
target/test/*.xml
deploy
:
tags
:
-
docker
stage
:
deploy
image
:
name
:
banst/awscli
entrypoint
:
[
"
"
]
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
\ No newline at end of file
.gitlab-ci.yml
View file @
9c0ecdfc
...
@@ -40,7 +40,15 @@ unit tests:
...
@@ -40,7 +40,15 @@ unit tests:
paths
:
paths
:
-
target/tests
-
target/tests
reports
:
reports
:
junit
:
target/test/*.xml
junit
:
target/test/*.xml
pages
:
stage
:
publishing
script
:
-
mkdir public
-
mv newman/report.html public/index.html
artifacts
:
paths
:
-
public
deploy
:
deploy
:
...
...
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