ci: allow | in before_script
in script: i can use the | markup so i do not have to prefix each line with dash (-):
script: |
TAG=$(git describe --tags)
SHA1=$(echo ${CI_BUILD_REF} | cut -c-7)
but it doesn't work with before_script -- it gives yaml error:
before_script: |
wget "https://cvs.example.org/rpm/SPECS/$PACKAGE_NAME.spec?view=co&revision=HEAD" -O $PACKAGE_NAME.spec
Found errors in your .gitlab-ci.yml:
jobs:release branch:before_script config should be an array of strings
You can also test your .gitlab-ci.yml in the Lint