Reputation: 1307
I am trying to run a GitLab pipe line for a Spring boot project with branch name as 'test-pipeline' as part of a POC. The pipeline is failing with below error. The tag reference has '/' character in the beginning. Not sure if this causing the issue.
Running before_script and script
00:03
$ if [[ -z "$CI_COMMIT_TAG" ]]; then # collapsed multi-line command
$ /build/build.sh
Building Heroku-based application using gliderlabs/herokuish docker image...
invalid reference format
invalid reference format
invalid argument "/test-pipeline:feec5e03aac2aa1968594056d67b9e43d2240e24" for "-t, --tag" flag: invalid reference format
See 'docker build --help'
Below is the gitlab-ci.yml.
image: maven:3.3-jdk-8
stages:
- test
- deploy
test_job:
stage: test
script:
- pwd
- mvn clean
- mvn compile
- mvn test
tags:
- docker
GitLab version: 12.10.14 GitLab Runner version: 12.10.3
As the tag name is internally picked up by the pipeline not sure how to fix this.
Please help.
Upvotes: 0
Views: 794
Reputation: 1307
I got the root cause of the issue. The gitlab-ci.yml file name is missing '.' in the begining, due to this default file is being picked up. Hence causing the issues. This is resolved after the changing the name to .gitlab-ci.yml.
Upvotes: 1