Is it possibile to keep previously added variables to manual jobs on Retry?
or even have again the initial empty form to retry the run?
Run with value from UI (and upload fail for some reason):
Retry, variable gets the default value, not the previous run value:
Relevant section of .gitlab-ci.yml
:
variables:
RELEASE_VERSION:
value: $CI_COMMIT_SHORT_SHA
promote:
stage: promote
image: alpine:latest
script:
- apk add hexdump
- echo "PROMOTE=yes" > promote.env
- echo "RELEASE_VERSION=$RELEASE_VERSION" >> promote.env
- cat promote.env
- hexdump promote.env
artifacts:
reports:
dotenv: promote.env
when: manual
only:
- master
- web
allow_failure: false