File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 22# See: https://circleci.com/docs/2.0/configuration-reference
33version : 2.1
44
5- orbs :
6- maven : circleci/maven@1.2.0
7-
85jobs :
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
2729workflows :
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
You can’t perform that action at this time.
0 commit comments