CI Shell Job randomly decides to use the default docker image!

Hi,

As in the post title.

This is the .gitlab-ci.yml file.

---
stages:
  - build
  - deploy
maven_build:
  stage: build
  script:
    - mvn verify package
maven_deploy:
  stage: deploy
  script:
    - mvn deploy

Why might this be happening ?

Thanks,

Hi gagan. By default, the executor will only pull images from Docker Hub, but this can be configured in the gitlab-runner/config.toml by setting the Docker pull policy to allow using local images.

For more information about images and Docker Hub please read the Docker documentation.

hi djordjesumenkovich,

That behavior you described is not consistent. A couple of times this project did infact did a shell executor build using maven.

I have two other projects configured pretty much identical are able to fulfill the pipeline using shell executor without docker.

–gagan