fix: Lets await!

This commit is contained in:
Andras Bacsai
2022-04-03 22:53:11 +02:00
parent c36bd34a1a
commit 53947d805b
5 changed files with 20 additions and 12 deletions

View File

@@ -11,11 +11,11 @@ export default async function ({
buildId,
privateSshKey
}): Promise<any> {
saveBuildLog({ line: 'GitLab importer started.', buildId, applicationId });
await saveBuildLog({ line: 'GitLab importer started.', buildId, applicationId });
await asyncExecShell(`echo '${privateSshKey}' > ${repodir}/id.rsa`);
await asyncExecShell(`chmod 600 ${repodir}/id.rsa`);
saveBuildLog({
await saveBuildLog({
line: `Cloning ${repository}:${branch} branch.`,
buildId,
applicationId