Set an env var when running jobs that points to the temp folder for the jobset output

This commit is contained in:
Marek Roszko
2025-06-05 22:50:58 -04:00
parent 4fb89a9341
commit ba63b07a5e
+5
View File
@@ -242,6 +242,8 @@ bool JOBS_RUNNER::RunJobsForDestination( JOBSET_DESTINATION* aDestination, bool
int failCount = 0;
int successCount = 0;
wxSetEnv( "JOBSET_OUTPUT_TMP_PATH", tempDirPath );
for( const JOBSET_JOB& job : jobsForDestination )
{
if( m_reporter != nullptr )
@@ -271,6 +273,7 @@ bool JOBS_RUNNER::RunJobsForDestination( JOBSET_DESTINATION* aDestination, bool
int result = CLI::EXIT_CODES::SUCCESS;
if( iface < KIWAY::KIWAY_FACE_COUNT )
{
result = m_kiway->ProcessJob( iface, job.m_job.get(), reporterToUse );
@@ -328,6 +331,8 @@ bool JOBS_RUNNER::RunJobsForDestination( JOBSET_DESTINATION* aDestination, bool
}
}
wxUnsetEnv( "JOBSET_OUTPUT_TMP_PATH" );
if( genOutputs )
success &= aDestination->m_outputHandler->HandleOutputs( tempDirPath, m_project, outputs );