File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ JSON_DATA=$(jq -n -c \
30
30
31
31
echo $JSON_DATA
32
32
33
- response_code=$( curl --show-error --silent --location --request POST " ${CI_ENDPOINT } /migration/run" --write-out " %{http_code}" \
34
- --header " Verification-Token: ${SECRET_TOKEN } " \
33
+ response_code=$( curl --show-error --silent --location --request POST " ${DLMC_CI_ENDPOINT } /migration/run" --write-out " %{http_code}" \
34
+ --header " Verification-Token: ${DLMC_VERIFICATION_TOKEN } " \
35
35
--header ' Content-Type: application/json' \
36
36
--output response.json \
37
37
--data " ${JSON_DATA} " )
63
63
mkdir artifacts
64
64
65
65
download_artifacts () {
66
- artifact_code=$( curl --show-error --silent " ${CI_ENDPOINT } /artifact/download?artifact_type=$1 &session_id=$2 &clone_id=$3 " --write-out " %{http_code}" \
67
- --header " Verification-Token: ${SECRET_TOKEN } " \
66
+ artifact_code=$( curl --show-error --silent " ${DLMC_CI_ENDPOINT } /artifact/download?artifact_type=$1 &session_id=$2 &clone_id=$3 " --write-out " %{http_code}" \
67
+ --header " Verification-Token: ${DLMC_VERIFICATION_TOKEN } " \
68
68
--header ' Content-Type: application/json' \
69
69
--output artifacts/$1 )
70
70
@@ -81,8 +81,8 @@ cat response.json | jq -c -r '.session.artifacts[]' | while read artifact; do
81
81
done
82
82
83
83
# Stop the running clone
84
- response_code=$( curl --show-error --silent " ${CI_ENDPOINT } /artifact/stop?clone_id=${clone_id} " --write-out " %{http_code}" \
85
- --header " Verification-Token: ${SECRET_TOKEN } " \
84
+ response_code=$( curl --show-error --silent " ${DLMC_CI_ENDPOINT } /artifact/stop?clone_id=${clone_id} " --write-out " %{http_code}" \
85
+ --header " Verification-Token: ${DLMC_VERIFICATION_TOKEN } " \
86
86
--header ' Content-Type: application/json' )
87
87
88
88
if [[ $response_code -ne 200 ]]; then
You can’t perform that action at this time.
0 commit comments