Commit e372c0d9 authored by Perwaiz Ali's avatar Perwaiz Ali

Update .gitlab-ci.yml

parent 95f17cbe
Pipeline #2169 failed with stages
in 15 seconds
demo_job_CICD_project:
tags:
- ci
script:
- mvn clean package
\ No newline at end of file
variables:
MAVEN_OPTS: -Dmaven.repo.local=.m2/repository
image: maven:latest
stages:
- build
- test
- package
- deploy
cache:
paths:
- .m2/repository
- target
build_job:
stage: build
tags:
- docker
script:
- echo "Maven compile started"
- "mvn compile"
test_job:
stage: test
tags:
- docker
script:
- echo "Maven test started"
- "mvn test"
package_job:
stage: package
tags:
- docker
script:
- echo "Maven packaging started"
- "mvn package"
Deploy_job:
stage: deploy
tags:
- docker
script:
- echo "Maven deploy started"
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