Mark job as skipped

How do I mark as job as skipped?

I check if there are any changes in git, otherwise exits this job. script:

  • alias 'dockerize=git whatchanged HEAD^! | grep mysql/Dockerfile >/dev/null'
  • dockerize || (echo "No need to build new docker image for this service." && exit 0)

But this set job as failed

Edited Jun 26, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading