Skip to content

Commit f1c9115

Browse files
committed
[SPARK-10657] Remove SCP-based Jenkins log archiving
As of https://issues.apache.org/jira/browse/SPARK-7561, we no longer need to use our custom SCP-based mechanism for archiving Jenkins logs on the master machine; this has been superseded by the use of a Jenkins plugin which archives the logs and provides public links to view them. Per shaneknapp, we should remove this log syncing mechanism if it is no longer necessary; removing the need to SCP from the Jenkins workers to the masters is a desired step as part of some larger Jenkins infra refactoring. Author: Josh Rosen <[email protected]> Closes #8793 from JoshRosen/remove-jenkins-ssh-to-master.
1 parent 6474387 commit f1c9115

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

dev/run-tests-jenkins

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -116,39 +116,6 @@ function post_message () {
116116
fi
117117
}
118118

119-
function send_archived_logs () {
120-
echo "Archiving unit tests logs..."
121-
122-
local log_files=$(
123-
find .\
124-
-name "unit-tests.log" -o\
125-
-path "./sql/hive/target/HiveCompatibilitySuite.failed" -o\
126-
-path "./sql/hive/target/HiveCompatibilitySuite.hiveFailed" -o\
127-
-path "./sql/hive/target/HiveCompatibilitySuite.wrong"
128-
)
129-
130-
if [ -z "$log_files" ]; then
131-
echo "> No log files found." >&2
132-
else
133-
local log_archive="unit-tests-logs.tar.gz"
134-
echo "$log_files" | xargs tar czf ${log_archive}
135-
136-
local jenkins_build_dir=${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_NUMBER}
137-
local scp_output=$(scp ${log_archive} amp-jenkins-master:${jenkins_build_dir}/${log_archive})
138-
local scp_status="$?"
139-
140-
if [ "$scp_status" -ne 0 ]; then
141-
echo "Failed to send archived unit tests logs to Jenkins master." >&2
142-
echo "> scp_status: ${scp_status}" >&2
143-
echo "> scp_output: ${scp_output}" >&2
144-
else
145-
echo "> Send successful."
146-
fi
147-
148-
rm -f ${log_archive}
149-
fi
150-
}
151-
152119
# post start message
153120
{
154121
start_message="\
@@ -244,8 +211,6 @@ done
244211

245212
test_result_note=" * This patch **fails $failing_test**."
246213
fi
247-
248-
send_archived_logs
249214
}
250215

251216
# post end message

0 commit comments

Comments
 (0)