Skip to content

Commit 3e65380

Browse files
committed
fix(workflows): update entrypoint script to use run-optional for env collection / git info
1 parent 8e5b04b commit 3e65380

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/execute-build/entrypoint.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ main() {
172172
echo "$BUILD_SCRIPT" >> "$temp_script"
173173
chmod +x "$temp_script"
174174
echo "temp_script: $temp_script"
175-
cat "$temp_script"
176175
resolved_build_script="$temp_script"
177176

178177
echo "Created temporary script from inline commands: $temp_script" >&2
@@ -210,14 +209,9 @@ main() {
210209
echo "Collecting build-info for $BUILD_NAME/$BUILD_ID..." >&2
211210
echo "Publishing from working directory: $(pwd)" >&2
212211

213-
# Collect environment variables for build-info
214-
run jf rt build-collect-env "$BUILD_NAME" "$BUILD_ID" --project="$PROJECT" || true
215-
216-
# Add git information to build-info
217-
run jf rt build-add-git "$BUILD_NAME" "$BUILD_ID" --project="$PROJECT" || true
218-
219-
# Publish build-info to JFrog (without uploading artifacts)
220-
run jf rt build-publish "$BUILD_NAME" "$BUILD_ID" --project="$PROJECT" || true
212+
run-optional jf rt build-collect-env "$BUILD_NAME" "$BUILD_ID" --project="$PROJECT"
213+
run-optional jf rt build-add-git "$BUILD_NAME" "$BUILD_ID" --project="$PROJECT"
214+
run jf rt build-publish "$BUILD_NAME" "$BUILD_ID" --project="$PROJECT"
221215

222216
echo "Published build-info: $BUILD_NAME/$BUILD_ID" >&2
223217
fi

0 commit comments

Comments
 (0)