Added: #1440 Update the status of the last successful build's output files

--HG--
branch : build_pipeline_v3
hg/feature/build_pipeline_v3
kaetemi 13 years ago
parent 1c3d8e6609
commit 7b07cb180f

@ -287,13 +287,27 @@ public:
class CStatusUpdateSlaveTask : public NLMISC::IRunnable
{
void cbFile(const std::string &filePath, const CFileStatus &fileStatus, bool success)
{
if (success)
{
m_Slave->addFileStatusToCache(NULL, filePath, fileStatus); // not macro path but works also :)
}
}
void cbDone()
{
// Not used because we wait for the updateDatabaseStatus function; it's easier.
}
public:
CStatusUpdateSlaveTask(CModulePipelineSlave *slave) : m_Slave(slave) { }
virtual void run()
{
// ****************************************************************************** TODO...
// Read the last build results
// Update the database status of those files
g_DatabaseStatus->updateDatabaseStatus(
CCallback<void>(this, &CStatusUpdateSlaveTask::cbDone),
TFileStatusCallback(this, &CStatusUpdateSlaveTask::cbFile),
m_Slave->m_ResultPreviousSuccess.MacroPaths, true, false);
// Mark as done
{

Loading…
Cancel
Save