Could Not Resolve Host? Auto DevOps Build


I am currently creating a CI pipeline and using Auto DevOps. When the build stage runs, the output is:

Pulling docker image
Using docker image sha256: HASH for
Running on runner-msJfGyyq-project-4-concurrent-0 via MYMACHINE…
Reinitialized existing Git repository in /builds/gitlab/USERNAME/PROJECTNAME/.git/
Fetching changes…
fatal: unable to access ‘https://gitlab-ci-token:[MASKED]@MACHINENAME:PORT/gitlab/USERNAME/PROJECTNAME.git/’: Could not resolve host: MACHINENAME
ERROR: Job failed: exit code 1

Could anyone help with this?? I cannot seem to figure this out.