Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
quidl committed Sep 9, 2024
1 parent 36424de commit 199d2ad
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions src/service/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,6 @@ async function executeJob(jobInfo, keepFiles) {
// ignored
logger.debug('Error when removing tmp directory:', err);
}

// try {
// console.log('QQQQQQ1 tmpDirPath', tmpDirPath);
// console.log('QQQQQQ1 fs', fs);
// fs.rmSync(tmpDirPath, { recursive: true, force: true });
// console.log('QQQQQQ2 tmpDirPath', tmpDirPath);
// } catch (err1) {
// logger.error('Error 2 when removing tmp directory:', err1);
// }
}
}
}
Expand Down Expand Up @@ -411,24 +402,15 @@ class Agent {
}

logger.info(`QQQQQQ0: ${JSON.stringify(parameter)}`);
logger.info(`QQQQQQ01: ${JSON.stringify(requestJobResponse.body.parameter)}`);
logger.info(`QQQQQQ1:
${requestJobResponse.body.parameter.gitRepositoryResource.repository}
${requestJobResponse.body.parameter.gitRepositoryResource.branch}
${requestJobResponse.body.parameter.gitRepositoryResource.username}
${requestJobResponse.body.parameter.gitRepositoryResource.password}`);
logger.info(`QQQQQQ1: ${JSON.stringify(requestJobResponse.body.parameter.gitRepositoryResource)}`);
if (parameter) {
parameter = { ...requestJobResponse.body.parameter, ...parameter };
} else {
parameter = requestJobResponse.body.parameter
}
projectId = requestJobResponse.body.testProject.projectId;
}
logger.info(`QQQQQQ4:
${requestJobResponse.body.parameter.gitRepositoryResource.repository}
${requestJobResponse.body.parameter.gitRepositoryResource.branch}
${requestJobResponse.body.parameter.gitRepositoryResource.username}
${requestJobResponse.body.parameter.gitRepositoryResource.password}`);
logger.info(`QQQQQQ2: ${JSON.stringify(parameter.gitRepositoryResource)}`);

const jobApiKey = parameter.environmentVariables
.find((item) => item.name === jobApiKeyEnv);
Expand Down

0 comments on commit 199d2ad

Please sign in to comment.