fix: self-hosted GitLab URL

This commit is contained in:
Andras Bacsai 2022-04-08 00:16:10 +02:00
parent b8b4f559db
commit 4da27a46a2

View File

@ -10,7 +10,7 @@ export default async function ({
buildId, buildId,
privateSshKey privateSshKey
}): Promise<any> { }): Promise<any> {
const url = htmlUrl.replace('https://', '').replace('http://', ''); const url = htmlUrl.replace('https://', '').replace('http://', '').replace(/\/$/, '');
await saveBuildLog({ line: 'GitLab importer started.', buildId, applicationId }); await saveBuildLog({ line: 'GitLab importer started.', buildId, applicationId });
await asyncExecShell(`echo '${privateSshKey}' > ${repodir}/id.rsa`); await asyncExecShell(`echo '${privateSshKey}' > ${repodir}/id.rsa`);
await asyncExecShell(`chmod 600 ${repodir}/id.rsa`); await asyncExecShell(`chmod 600 ${repodir}/id.rsa`);