License Management fails for Maven

Hi,

It tests the build with a maven call using jdk 8. The build is sucessful. However, the license_management step fails. Since it uses the same command (except of skipping tests) as the build step, I do not understand why maven command now fails.

Maybe I need to specify the license_management step also should use a maven3 image?

If anybody has a tip how to modify, the .gitlab-ci.yml file I would be very thankful ;)

Thank you, Michael

We are using GitLab Enterprise Edition 11.5.3-ee.

This is my .gitlab-ci.yml file:

image: maven:3-jdk-8


masterJob:
  script: "mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean deploy --settings settings.xml"
  only:
  - master
  - dev
  
BranchJob:
  script: "mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings settings.xml"
  except:
  - master
  - dev
  
license_management:
  image:
    name: "registry.gitlab.com/gitlab-org/security-products/license-management:$CI_SERVER_VERSION_MAJOR-$CI_SERVER_VERSION_MINOR-stable"
    entrypoint: [""]
  stage: test
  variables:
    SETUP_CMD: "mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings settings.xml -DskipTests"
  allow_failure: true
  script:
    - /run.sh analyze .
  artifacts:
    reports:
      license_management: gl-license-management-report.json
  • this is the proof that the build is sucessful: image

  • this is the error message for running the license management. image

    • but I do not understand why we receive here the error message: Could not generate DH keypair: DH key size must be multiple of 64, and can only range from 512 to 2048 (inclusive). The specific key size 4096 is not supported
    • I read about the bug, but since it works with the other maven 3 jdk8 image, I thought it does not impact us. - But anyhow I must be wrong :(
Assignee Loading
Time tracking Loading