Gitlab build fails with JDK-17 corretto
Compile stage of the Gitlab fails with an error :
- *Compile stage fails with an error Executing “step_script” stage of the job script00:01
[30]$ make build
[31]/scripts-30180636-4504423081/step_script: eval: line 154: make: not found
[33]Cleaning up project directory and file based variables00:00
[35]ERROR: Job failed: command terminated with exit code 127*
** The config is like this
.maven:
image: registry.gitlab.com/<context-root>/docker-base-images/java-corretto-17:latest
variables:
MAVEN_CLI_OPTS: " -s $CI_PROJECT_DIR/.m2/settings.xml -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
PROJECT_CHANNEL: $CI_COMMIT_REF_SLUG
MAVEN_REPO_PATH: $CI_PROJECT_DIR/.m2/repository
CI_DEBUG_TRACE: "true"
CI_DEBUG_SERVICES: "true"
stages:
- build
- test
- release
cache:
key: maven-repository
paths:
- .m2/repository
- code/**/target/
compile:
extends: .maven
stage: build
variables:
EXTRA_MAVEN_OPTS: -Dcheckstyle.skip=true -Dtests.unit.skip=true -Dtests.integration.skip=true
script:
- make build
artifacts:
paths:
- code/**/*.jar
expire_in: 1 week
- *What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been? Enabled the debug traces and compare the logs and nothing of significant difference could be found however The build from JDK 11 branch has the GitLab syntax like this
export SECRET_DETECTION_EXCLUDED_PATHS=‘'’‘'’
where as the one with Java 17
export SECRET_DETECTION_EXCLUDED_PATHS=‘"’‘"’*
Thanks for taking the time to be thorough in your request, it really helps!