diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f71dec722345398daf9bb8e353ac31c3b7c9e06e..0f3afb9347fc98b6f939d901d82970e03cb31035 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,7 @@ stages:
 - report
 
 build:
+  image: gradle/jdk8
   stage: build
   script:
   - ./gradlew --console=plain assemble
@@ -11,6 +12,7 @@ build:
   when: on_success
 
 test:
+  image: gradle/jdk8
   stage: test
   script:
   - ./gradlew --continue --console=plain test jacocoTestReport