git
Submodule ¶
Structs ¶
GitMirrorProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
remoteRepository |
string |
The git repository the code of the pipelines repository should be mirrored to. |
gitConfigUserEmail |
string |
The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL. |
gitConfigUserName |
string |
The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME. |
jobName |
string |
The name of the Bootstrap job. |
jobStage |
string |
The stage of the Bootstrap job. |
privateKeyVariable |
string |
DO NOT PROVIDE YOUR PRIVATE SSH KEY HERE!!! This parameter takes the name of the Gitlab environment variable, which contains the private ssh key used to push to the remote repository. This one should be created as protected and masked variable in the 'CI/CD' settings of your project. |
runOnlyForRepositoryUrl |
string |
When mirroring to a remote Gitlab instance, you don't want to run this mirroring job there again. |
scriptHook |
string[] |
This list of strings could contain any commands that should be executed between pulling the current repository and pushing it to the remote. |
remoteRepository
Required ¶
- Type: string
The git repository the code of the pipelines repository should be mirrored to.
gitConfigUserEmail
Optional ¶
- Type: string
The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL.
gitConfigUserName
Optional ¶
- Type: string
The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME.
jobName
Optional ¶
- Type: string
The name of the Bootstrap job.
jobStage
Optional ¶
- Type: string
The stage of the Bootstrap job.
privateKeyVariable
Optional ¶
- Type: string
DO NOT PROVIDE YOUR PRIVATE SSH KEY HERE!!! This parameter takes the name of the Gitlab environment variable, which contains the private ssh key used to push to the remote repository. This one should be created as protected and masked variable in the 'CI/CD' settings of your project.
runOnlyForRepositoryUrl
Optional ¶
- Type: string
When mirroring to a remote Gitlab instance, you don't want to run this mirroring job there again.
With this variable the job only runs, when its value matches the CI_REPOSITORY_URL of the current repository.
scriptHook
Optional ¶
- Type: string[]
This list of strings could contain any commands that should be executed between pulling the current repository and pushing it to the remote.
This hook is mostly meant to be for git configuration commands, required to push to the remote repository.
Classes ¶
GitMirror ¶
- Implements: IGitMirror
This job clones the CI_COMMIT_REF_NAME of the current repository and forcefully pushes this REF to the remote_repository
.
This subclass of Job
will configure following defaults for the superclass:
- name: git-mirror
- stage: deploy
- image: PredefinedImages.ALPINE_GIT
Initializers ¶
Name | Type | Description |
---|---|---|
props |
GitMirrorProps |
No description. |
props
Required ¶
- Type: GitMirrorProps
Methods ¶
Name | Description |
---|---|
addDependencies |
No description. |
addNeeds |
No description. |
addParent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
addTags |
No description. |
addVariables |
No description. |
appendRules |
No description. |
appendScripts |
No description. |
assignAllowFailure |
No description. |
assignArtifacts |
No description. |
assignCache |
No description. |
assignDependencies |
No description. |
assignImage |
Sets the image of this job. |
assignNeeds |
No description. |
assignTags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extendName |
This method is used by gcix.JobCollection s to populate the jobs name. |
extendStage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extendStageValue |
This method is used by gcix.JobCollection s to populate the jobs stage. |
getAllInstanceNames |
Return all instance names from the given child. |
isEqual |
isEqual checks if this object is equal to given object. |
prependRules |
No description. |
prependScripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
addDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addParent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
addTags
¶
tags
Required ¶
- Type: string[]
addVariables
¶
variables
Required ¶
- Type: {[ key: string ]: string}
appendRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
appendScripts
¶
scripts
Required ¶
- Type: string[]
assignAllowFailure
¶
allowFailure
Required ¶
- Type: boolean | number[]
assignArtifacts
¶
artifacts
Required ¶
- Type: @gcix/gcix.Artifacts
assignCache
¶
cache
Required ¶
- Type: @gcix/gcix.Cache
assignDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignImage
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: string | @gcix/gcix.Image
assignNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignTags
¶
tags
Required ¶
- Type: string[]
copy
¶
Returns an independent, deep copy object of this job.
extendName
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: string
extendStage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: string
extendStageValue
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: string
getAllInstanceNames
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
isEqual
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: @gcix/gcix.IBase
prependRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
prependScripts
¶
scripts
Required ¶
- Type: string[]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
string[] |
Getter method to receive added tags. |
allowFailure |
string | boolean | number[] |
No description. |
name |
string |
No description. |
orderedTags |
@gcix/gcix.OrderedStringSet |
No description. |
parents |
@gcix/gcix.Job | @gcix/gcix.JobCollection[] |
No description. |
scripts |
string[] |
No description. |
stage |
string |
No description. |
artifacts |
@gcix/gcix.Artifacts |
No description. |
cache |
@gcix/gcix.Cache |
No description. |
dependencies |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
image |
@gcix/gcix.Image |
No description. |
needs |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
original |
@gcix/gcix.Job |
No description. |
rules |
@gcix/gcix.Rule[] |
No description. |
variables |
{[ key: string ]: string} |
No description. |
gitConfigUserEmail |
string |
The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL. |
gitConfigUserName |
string |
The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME. |
remoteRepository |
string |
The git repository the code of the pipelines repository should be mirrored to. |
scriptHook |
string[] |
This list of strings could contain any commands that should be executed between pulling the current repository and pushing it to the remote. |
privateKeyVariable |
string |
DO NOT PROVIDE YOUR PRIVATE SSH KEY HERE!!! This parameter takes the name of the Gitlab environment variable, which contains the private ssh key used to push to the remote repository. This one should be created as protected and masked variable in the 'CI/CD' settings of your project. |
runOnlyForRepositoryUrl |
string |
When mirroring to a remote Gitlab instance, you don't want to run this mirroring job there again. |
tags
Required ¶
- Type: string[]
Getter method to receive added tags.
allowFailure
Required ¶
- Type: string | boolean | number[]
name
Required ¶
- Type: string
orderedTags
Required ¶
- Type: @gcix/gcix.OrderedStringSet
parents
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]
scripts
Required ¶
- Type: string[]
stage
Required ¶
- Type: string
artifacts
Optional ¶
- Type: @gcix/gcix.Artifacts
cache
Optional ¶
- Type: @gcix/gcix.Cache
dependencies
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
image
Optional ¶
- Type: @gcix/gcix.Image
needs
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
original
Optional ¶
- Type: @gcix/gcix.Job
rules
Optional ¶
- Type: @gcix/gcix.Rule[]
variables
Optional ¶
- Type: {[ key: string ]: string}
gitConfigUserEmail
Required ¶
- Type: string
The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL.
gitConfigUserName
Required ¶
- Type: string
The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME.
remoteRepository
Required ¶
- Type: string
The git repository the code of the pipelines repository should be mirrored to.
scriptHook
Required ¶
- Type: string[]
This list of strings could contain any commands that should be executed between pulling the current repository and pushing it to the remote.
This hook is mostly meant to be for git configuration commands, required to push to the remote repository.
privateKeyVariable
Optional ¶
- Type: string
DO NOT PROVIDE YOUR PRIVATE SSH KEY HERE!!! This parameter takes the name of the Gitlab environment variable, which contains the private ssh key used to push to the remote repository. This one should be created as protected and masked variable in the 'CI/CD' settings of your project.
runOnlyForRepositoryUrl
Optional ¶
- Type: string
When mirroring to a remote Gitlab instance, you don't want to run this mirroring job there again.
With this variable the job only runs, when its value matches the CI_REPOSITORY_URL of the current repository.
Protocols ¶
IGitMirror ¶
- Implemented By: @gcix/gcix.aws.CdkMirrorToCodecommit, GitMirror, @gcix/gcix.aws.ICdkMirrorToCodecommit, IGitMirror
Properties ¶
Name | Type | Description |
---|---|---|
gitConfigUserEmail |
string |
The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL. |
gitConfigUserName |
string |
The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME. |
remoteRepository |
string |
The git repository the code of the pipelines repository should be mirrored to. |
scriptHook |
string[] |
This list of strings could contain any commands that should be executed between pulling the current repository and pushing it to the remote. |
privateKeyVariable |
string |
DO NOT PROVIDE YOUR PRIVATE SSH KEY HERE!!! This parameter takes the name of the Gitlab environment variable, which contains the private ssh key used to push to the remote repository. This one should be created as protected and masked variable in the 'CI/CD' settings of your project. |
runOnlyForRepositoryUrl |
string |
When mirroring to a remote Gitlab instance, you don't want to run this mirroring job there again. |
gitConfigUserEmail
Required ¶
- Type: string
The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL.
gitConfigUserName
Required ¶
- Type: string
The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME.
remoteRepository
Required ¶
- Type: string
The git repository the code of the pipelines repository should be mirrored to.
scriptHook
Required ¶
- Type: string[]
This list of strings could contain any commands that should be executed between pulling the current repository and pushing it to the remote.
This hook is mostly meant to be for git configuration commands, required to push to the remote repository.
privateKeyVariable
Optional ¶
- Type: string
DO NOT PROVIDE YOUR PRIVATE SSH KEY HERE!!! This parameter takes the name of the Gitlab environment variable, which contains the private ssh key used to push to the remote repository. This one should be created as protected and masked variable in the 'CI/CD' settings of your project.
runOnlyForRepositoryUrl
Optional ¶
- Type: string
When mirroring to a remote Gitlab instance, you don't want to run this mirroring job there again.
With this variable the job only runs, when its value matches the CI_REPOSITORY_URL of the current repository.