Skip to content

addGitRemote

addGitRemote(ciPipelineId, accessToken, ciProjectPath, vcsProvider): Promise<string>

Defined in: packages/simply-cicd-core/src/git.ts:112

Adds a temporary authenticated git remote for CI push/tag operations. Returns the remote’s alias.

The alias is keyed on the pipeline ID, so a retried job, or a later job in the same pipeline that lands on a runner reusing the working copy (GIT_STRATEGY: fetch), finds it already present. In that case the existing remote’s URL is overwritten instead, which also refreshes the token.

string

string

string

VcsProvider

Promise<string>