: nply/minci

commit d42d2b65c2647757bedfa24b907bb715e56c3ae7
parent aad21effb10445661a379e1344a9efee6b70d254
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 11 Sep 2026 23:20:29 +0530

Skip Jobfile posting in dry-run mode
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/minci.sh b/minci.sh
@@ -86,6 +86,7 @@ postjob()
 	start=$4
 	finish=$5
 	log=$6
+	[ -n "$NOOP" -o -n "$NOREP" ] && return 0
 	runhash=$(printf '%s|%s|%s|%s' "$project" "$FETCH_HEAD" "$BRANCH" "${TARGET:-$(uname -n)}" | md5text)
 	loghash=$(md5file "$log")
 	QUERY="artifact-name=${artifact_name:-}"

@@ -103,7 +104,6 @@ postjob()
 	QUERY="$QUERY&run-target=${TARGET:-$(uname -n)}"
 	QUERY="$QUERY&user-apisecret=$API_SECRET"
 	SIGNATURE=$(printf "%s" "$QUERY" | md5text)
-	[ -n "$NOOP" -o -n "$NOREP" ] && return 0
 	curl -sS \
 	     -F "artifact-name=${artifact_name:-}" \
 	     -F "artifact-sha256=${artifact_sha256:-}" \