Backend: Terminator at the end of the line disappear in the file type of CI/CD variable

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

The last line of the initial file ends with a terminator $. However, when copying the contents of the file to the file type CI/CD variable and output it in the job, the terminator disappears.

Steps to reproduce

  1. Create a file and using cat -A to view the contents.

image

  1. Copy the contents to CI/CD file variable.

image

  1. Edit the .gitlab-ci.yml to output the variable.

image

  1. Check the output in the job.

image

This issue can fail the connection from the remote machine using the latest version of openssh keys due to the lack of the terminator in the last line.

Edited by 🤖 GitLab Bot 🤖