Gitlab CI stuck in a running state after completion

I’m trying out Gitlab CI for the first time with a Spring Boot project with Maven.

After completing mvn test command, Gitlab CI seems to just hang there in a running state.

Below is a screenshot of the last few lines after the test, along with my .gitlab-ci.yml.

Am I missing something in the CI configuration file?, or maybe with docker settings?

stages:
  - test

variables:
  MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
  MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"

cache:
  paths:
    - .m2/repository

test:
  stage: test
  image: maven:3.3.9-jdk-8
  script:
    - 'mvn $MAVEN_CLI_OPTS test'

I’m running GitLab on my own private server.

Thanks in advance.

Hi @hyunchung,

I’m having the exact same issue as you, did you get past it?