gitdeploy/examples/promote.sh

21 lines
249 B
Bash
Raw Normal View History

2020-09-29 03:15:30 +00:00
#!/bin/bash
for x in $@; do
echo "$x"
done
2020-09-29 10:40:09 +00:00
my_envs='GIT_DEPLOY_JOB_ID
GIT_DEPLOY_PROMOTE_TO
GIT_REF_NAME
2020-09-29 03:15:30 +00:00
GIT_REF_TYPE
GIT_REPO_OWNER
GIT_REPO_NAME
GIT_CLONE_URL'
echo 'Doing "work" ...'
sleep 5
for x in $my_envs; do
echo "$x=${!x}"
done