Commit 1b174332 authored by Jannis Schaefer's avatar Jannis Schaefer
Browse files

Use gradle docker image for more resilient builds.

parent 53923f47
Pipeline #38605 passed with stages
in 2 minutes and 40 seconds
image: openjdk:11
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- chmod +x ./gradlew
image: gradle:5.6.4-jdk11
stages:
- build
......@@ -12,12 +7,12 @@ stages:
build:
stage: build
script:
- ./gradlew assemble
- gradle assemble
checkstyle_main:
stage: check
script:
- ./gradlew checkstyleMain -x test
- gradle checkstyleMain -x test
- cp build/reports/checkstyle/main.html ./checkstyleMain.html
artifacts:
paths:
......@@ -27,7 +22,7 @@ checkstyle_main:
checkstyle_test:
stage: check
script:
- ./gradlew checkstyleTest -x test
- gradle checkstyleTest -x test
- cp build/reports/checkstyle/test.html ./checkstyleTest.html
artifacts:
paths:
......@@ -37,7 +32,7 @@ checkstyle_test:
spotbugs_main:
stage: check
script:
- ./gradlew spotbugsMain -x test
- gradle spotbugsMain -x test
- cp build/reports/spotbugs/main.html ./spotbugsMain.html
artifacts:
paths:
......@@ -47,7 +42,7 @@ spotbugs_main:
spotbugs_test:
stage: check
script:
- ./gradlew spotbugsTest -x test
- gradle spotbugsTest -x test
- cp build/reports/spotbugs/test.html ./spotbugsTest.html
artifacts:
paths:
......
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