Commit 6712f6f
Eric Bower
·
2026-10-12 22:21:20 -0400 EDT
parent 68fab64
chore: full file
1 files changed,
+10,
-12
+10,
-12
| ... | ... | @@ -51,20 +51,18 @@ while read -r old_sha new_sha ref; do | |
| 51 | 51 | log "repo=$repo type=$event_type name=$ref_name commit=$new_sha" | |
| 52 | 52 | ||
| 53 | 53 | # upload_base is "host:path", e.g. pgs.sh:/private-ci/myrepo | |
| 54 | - | # upload_host="${upload_base%%:*}" | |
| 55 | - | # upload_dir="${upload_base#*:}/${short_sha}/" | |
| 56 | - | # tar_path="${upload_dir}workspace.tar" | |
| 57 | - | # log "upload: git archive $new_sha → $upload_host:$tar_path" | |
| 54 | + | upload_host="${upload_base%%:*}" | |
| 55 | + | upload_dir="${upload_base#*:}/${short_sha}/" | |
| 56 | + | tar_path="${upload_dir}workspace.tar" | |
| 57 | + | log "upload: git archive $new_sha → $upload_host:$tar_path" | |
| 58 | 58 | ||
| 59 | - | # if ! git archive "$new_sha" | ssh -T "$upload_host" "$tar_path"; then | |
| 60 | - | # log "ERROR: upload failed" >&2 | |
| 61 | - | # continue | |
| 62 | - | # fi | |
| 59 | + | if ! git archive "$new_sha" | ssh -T "$upload_host" "$tar_path"; then | |
| 60 | + | log "ERROR: upload failed" >&2 | |
| 61 | + | continue | |
| 62 | + | fi | |
| 63 | 63 | ||
| 64 | - | # workspace="${upload_host}:${tar_path}" | |
| 65 | - | # artifact_dest="${upload_host}:${upload_dir}" | |
| 66 | - | workspace="" | |
| 67 | - | artifact_dest="" | |
| 64 | + | workspace="${upload_host}:${tar_path}" | |
| 65 | + | artifact_dest="${upload_host}:${upload_dir}" | |
| 68 | 66 | job_id="$short_sha" | |
| 69 | 67 | ||
| 70 | 68 | if [ "$event_type" = "git.tag" ]; then |