diff options
Diffstat (limited to 'tsp/jobs/publish.sh')
-rwxr-xr-x | tsp/jobs/publish.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tsp/jobs/publish.sh b/tsp/jobs/publish.sh index 88ea53d..018399a 100755 --- a/tsp/jobs/publish.sh +++ b/tsp/jobs/publish.sh @@ -143,6 +143,11 @@ sqlite3 "${DBPATH}" "insert into test values (NULL,'$SR', CURRENT_TIMESTAMP,\ (select r.rid from result r where r.rname='$TAG'),\ (select d.did from device d where d.dname='$TARGET'));" +# Publish to www +cat "${TSP_DIR}/html_head" > "${WWW_PUBLISH}" +sqlite3 -html -header "${DBPATH}" "SELECT * FROM currentstatus;" >> "${WWW_PUBLISH}" +cat "${TSP_DIR}/html_tail" >> "${WWW_PUBLISH}" + # Clean up workspace ssh tl-pwb "rm -rf \"${WORKSPACE}\"; mkdir -p \"${WORKSPACE}\"" || echo "rm failed" |