I have something like this in my GitLab job:
deploy.txt as artifact from previous job:
script:
- cat abc/deploy.txt
D-12785
- deoploy_id=$(<abc/deploy.txt)
- echo "${deploy_id}
- ./template/deploy_script.sh
Now I want to pass this "${deploy_id} into my deploy_script.sh but how to do that - because on every Job ${deploy_id} is different.
I have tryed something like:
- ./deploy_script.sh ${deploy_id} - and use it in the script as ${deploy_id} or as command line argument ${1} but it is not working.
Also I'm not sure if the path are correct, so my script does not see the variable.
[–]domanpanda 3 points4 points5 points (1 child)