Gcloud command not running on gitlab ci yml warning: here-document at line ted by end-of-file (wanted `EOF’) /bin/bash: : EOF: command not found

I am getting the following error when I run the below gcloud command in gitlab-ci.yml

/bin/bash: line 152: warning: here-document at line 152 delimited by end-of-file (wanted `EOF') /bin/bash: line 152: EOF: command not found

     fuser -k 8080/tcp
     nohup java -jar /home/XXX/XXX-1.0-SNAPSHOT.jar > /dev/null 2>&1 &
     EOF

Source: Docker Questions