fix: self-hosted GitLab URL
This commit is contained in:
parent
b8b4f559db
commit
4da27a46a2
@ -10,7 +10,7 @@ export default async function ({
|
||||
buildId,
|
||||
privateSshKey
|
||||
}): 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 asyncExecShell(`echo '${privateSshKey}' > ${repodir}/id.rsa`);
|
||||
await asyncExecShell(`chmod 600 ${repodir}/id.rsa`);
|
||||
|
Loading…
Reference in New Issue
Block a user