Commit 9c0ecdfc authored by Perwaiz Ali's avatar Perwaiz Ali

.git-ci.yml changes

parent a533f36e
Pipeline #2216 failed
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
...@@ -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:
......
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