|
| 1 | +# Use the latest 2.1 version of CircleCI pipeline process engine. |
| 2 | +# See: https://circleci.com/docs/configuration-reference |
| 3 | +version:2.1 |
| 4 | + |
| 5 | +# Define a job to be invoked later in a workflow. |
| 6 | +# See: https://circleci.com/docs/configuration-reference/#jobs |
| 7 | +jobs: |
| 8 | +build-linux: |
| 9 | +# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub. |
| 10 | +# See: https://circleci.com/docs/configuration-reference/#executor-job |
| 11 | +docker: |
| 12 | + -image:cimg/openjdk:11.0.19 |
| 13 | +# Add steps to the job |
| 14 | +# See: https://circleci.com/docs/configuration-reference/#steps |
| 15 | +steps: |
| 16 | + -checkout |
| 17 | + -run: |
| 18 | +name:"Build gradle" |
| 19 | +command:chmod +x gradlew && ./gradlew clean build |
| 20 | + |
| 21 | +# Orchestrate jobs using workflows |
| 22 | +# See: https://circleci.com/docs/configuration-reference/#workflows |
| 23 | +workflows: |
| 24 | +say-hello-workflow: |
| 25 | +jobs: |
| 26 | + -build-linux |