Skip to content

Commit 5b0c292

Browse files
committed
Added init instruction that instal maven
1 parent 3cc7cf4 commit 5b0c292

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.circleci/config.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@
22
# See: https://circleci.com/docs/2.0/configuration-reference
33
version: 2.1
44

5-
orbs:
6-
maven: circleci/maven@1.2.0
7-
85
jobs:
96
# Below is the definition of your job to build and test your app, you can rename and customize it as you want.
10-
prepare:
7+
build-and-test:
118
# These next lines define a Docker executor: https://circleci.com/docs/2.0/executor-types/
129
# You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
1310
# Be sure to update the Docker image tag below to openjdk version of your application.
1411
# A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/openjdk
1512
docker:
16-
- image: openjdk:17
13+
- image: amazoncorretto:17
1714
steps:
1815
- run:
1916
name: Init
2017
command: |
21-
echo 'Init Step'
22-
echo 'This is the init pipeline step.'
18+
yum install maven -y
2319
# Checkout the code as the first step.
2420
- checkout
2521
# Use mvn clean and package as the standard maven build phase
26-
22+
- run:
23+
name: Build
24+
command: mvn clean install
25+
# Then run your tests!
26+
- run:
27+
name: Test
28+
command: mvn test
2729
workflows:
2830
# Below is the definition of your workflow.
2931
# Inside the workflow, you provide the jobs you want to run, e.g this workflow runs the prepare job above.
3032
# CircleCI will run this workflow on every commit.
3133
# For more details on extending your workflow, see the configuration docs: https://circleci.com/docs/2.0/configuration-reference/#workflows
3234
sample:
3335
jobs:
34-
- prepare
35-
- maven/test:
36-
command: '-X verify'
36+
- build-and-test

0 commit comments

Comments
 (0)