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.
Parameters
Section titled “Parameters”ciPipelineId
Section titled “ciPipelineId”string
accessToken
Section titled “accessToken”string
ciProjectPath
Section titled “ciProjectPath”string
vcsProvider
Section titled “vcsProvider”Returns
Section titled “Returns”Promise<string>