Search code examples
gitlabgitlab-cipipelineemojicicd

Using emojis in a gitlab-ci


Good morning,

Anyone know how to add emoji in a gitlab pipeline?

In my gitlab-ci.yml file, I tried:

  • To add the emoji hard -> it does not work
  • To use the unicode of the emoji -> it doesn't work
  • Use icon key -> Not working
  • Use emojis key -> Not working

Obviously it is possible to do this:

Thanks in advance :)


Solution

  • Emojis are supported. Simply embed the characters directly in your .gitlab-ci.yml file.

    For example:

    stages:
      - 📦 build
      - 🤞 test
    
    "build 🏗 job":
      stage: 📦 build
      script:
        - echo 'build'
    
    "test 🧪 job":
      stage: 🤞 test
      script:
        - echo 'test'
    
    

    When viewed in GitLab, will show the emojis in the same places stage/job names are usually displayed:

    gitlab pipeline