Commit 4d02e7a3 authored by Daniel Smith's avatar Daniel Smith

Set status messaged as 'staged' for staged jobs

parent a5bbb590
...@@ -690,6 +690,10 @@ function scheduleJobRequest(req, res){ ...@@ -690,6 +690,10 @@ function scheduleJobRequest(req, res){
job.owner = 'default'; // Set a display name if the email address field wasn't filled. job.owner = 'default'; // Set a display name if the email address field wasn't filled.
} }
if (!job.status_msg){
job.status_msg = 'staged'; // Set a display name if the email address field wasn't filled.
}
if (req.body.test_hosts[i] == myname){ if (req.body.test_hosts[i] == myname){
// Either we're a remote host and received a job, or we're the scheduler and have a job thread available. // Either we're a remote host and received a job, or we're the scheduler and have a job thread available.
console.log('executing test locally.'); console.log('executing test locally.');
...@@ -1527,7 +1531,7 @@ function homePage(req, res){ ...@@ -1527,7 +1531,7 @@ function homePage(req, res){
<b>${job.testType} <b>${job.testType}
</b> job <font color="#454545"><b>${job.jobHash.slice(0, 10)}: ${job.title}<br>User: ${job.owner}</b></font> - Host: ${job.test_hosts[0]} - Timestamp: ${moment(job.timestamp).format('ddd DD MMM YYYY - HH:mm')} is ${job.status}<br> </b> job <font color="#454545"><b>${job.jobHash.slice(0, 10)}: ${job.title}<br>User: ${job.owner}</b></font> - Host: ${job.test_hosts[0]} - Timestamp: ${moment(job.timestamp).format('ddd DD MMM YYYY - HH:mm')} is ${job.status}<br>
Tested commit(s) ${commitString}${backendString}<br> Tested commit(s) ${commitString}${backendString}<br>
Last status message: ${job.status_msg}<br> Last status message: <font color="#454545">${job.status_msg}</font><br>
${testString} ${testString}
${timeEstimate ? '<br>' + timeEstimate : ''} ${timeEstimate ? '<br>' + timeEstimate : ''}
${resultString ? '<br>' + resultString : ''} ${resultString ? '<br>' + resultString : ''}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment