Set an env var when running jobs that points to the temp folder for the jobset output
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user