I’m trying to evaluate the CI/CD portion of GitLab and I’m having a hard time getting the yml configuration to pass validation. I’ve copied known good examples that I’ve found online and created my own. I’ve used online yml validators to check the configuration with no issues, however in GitLab, I always get: This GitLab CI configuration is invalid: include config should be an array or a string.
The current configuration is:
image: maven:latest variables: MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode" MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" cache: paths: - .m2/repository/ - target/ build: stage: build script: - 'mvn $MAVEN_CLI_OPTS compile'