Commit 460c5eb0 authored by Perwaiz Ali's avatar Perwaiz Ali

change in .git-yml

parent 203c2f76
Pipeline #2208 canceled with stages
in 26 seconds
...@@ -108,6 +108,43 @@ maven-build: ...@@ -108,6 +108,43 @@ maven-build:
paths: paths:
- target/CICDTesting-0.0.1-SNAPSHOT.jar - target/CICDTesting-0.0.1-SNAPSHOT.jar
deploy:
tags:
- docker
stage: deploy
image:
name: banst/awscli
entrypoint: [""]
script:
- aws configure set region ap-south-1
- aws s3 cp ./target/CICDTesting-0.0.1-SNAPSHOT.jar s3://$S3_BUCKET/CICDTesting-0.0.1-SNAPSHOT.jar
--------------------------------------------------------------------------------------------------------------
stages:
- build
- test
- deploy
maven-build:
tags:
- docker
image: maven:3-jdk-11
stage: build
script: "mvn package -B"
artifacts:
paths:
- target/CICDTesting-0.0.1-SNAPSHOT.jar
Test:
tags:
- docker
stage: test
script:
- echo Hello World CICD Test
- echo Test Success show
deploy: deploy:
tags: tags:
......
...@@ -13,13 +13,17 @@ maven-build: ...@@ -13,13 +13,17 @@ maven-build:
paths: paths:
- target/CICDTesting-0.0.1-SNAPSHOT.jar - target/CICDTesting-0.0.1-SNAPSHOT.jar
Test: test-code-job1:
tags: stage: test
- docker script:
- echo "If the files are built successfully, test some files with one command:"
- rake test1
test-code-job2:
stage: test stage: test
script: script:
- echo Hello World CICD Test - echo "If the files are built successfully, test other files with a different command:"
- echo Test Success show - rake test2
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