File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,10 @@ runs:
234
234
info "Importing \"${project_name}\"..."
235
235
response=$(send_request "${svacer_import}" $request_attempts)
236
236
read import_task_id import_task_status <<< $(jq -r '(.task_id|tostring)+" "+.status' <<< ${response})
237
+ if [[ -z "${import_task_id}" ]]; then
238
+ error "Import task failed. Response: ${response}"
239
+ exit 1
240
+ fi
237
241
info "Import task scheduled succesfully. Task id: ${import_task_id}"
238
242
239
243
get_import_log="curl --write-out \"\\n%{http_code}\" -sSL --request GET \
@@ -322,8 +326,8 @@ runs:
322
326
fi
323
327
324
328
if [[ $(send "[[ -f ${proj}/${build_item}.tar.gz ]] && echo true || echo false") == true ]]; then
325
- info "Start importing project \"${svacer_proj }\" ..."
326
- upload_to_svacer "${svacer_proj }" "${CI_COMMIT_REF_NAME }" "${proj}/${build_item}.tar.gz"
329
+ info "Start importing project \"${import_project}\" with branch \"${import_branch }\" ..."
330
+ upload_to_svacer "${import_project }" "${import_branch }" "${proj}/${build_item}.tar.gz"
327
331
success "Import completed successfuly!"
328
332
else
329
333
warning "Nothing to import! Couldn't find \"${build_item}.tar.gz\" in \"${proj}\""
You can’t perform that action at this time.
0 commit comments