API Reference ¶
Structs ¶
AddChildrenProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
jobs_or_job_collections |
typing.List[typing.Union[Job, JobCollection]] |
No description. |
name |
str |
No description. |
stage |
str |
No description. |
jobs_or_job_collections
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection]]
name
Optional ¶
- Type: str
stage
Optional ¶
- Type: str
ArtifactsProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
excludes |
typing.List[str] |
Paths that prevent files from being added to an artifacts archive. |
expire_in |
str |
How long the artifacts will be saved before it gets deleted. |
expose_as |
str |
Used to expose artifacts in merge requests. |
name |
str |
Name of the artifacts archive. |
paths |
typing.List[str] |
Paths relative to project directory $CI_PROJECT_DIR , found files will be used to create the artifacts. |
public |
bool |
True makes artifacts public. |
reports |
typing.List[ArtifactsReport] |
Reports must be a valid dictionary, the key represents a ArtifactsReport and the value must be a valid relativ file path to the reports file. |
untracked |
bool |
If true adds all untracked file to artifacts archive. |
when |
WhenStatement |
When to upload artifacts, Only on_success , on_failure or always is allowed. |
excludes
Optional ¶
- Type: typing.List[str]
Paths that prevent files from being added to an artifacts archive.
expire_in
Optional ¶
- Type: str
How long the artifacts will be saved before it gets deleted.
expose_as
Optional ¶
- Type: str
Used to expose artifacts in merge requests.
name
Optional ¶
- Type: str
Name of the artifacts archive.
Internally defaults to {PredefinedVariables.ciJobName}-{PredefinedVariables.ciCommitRefSlug}.
paths
Optional ¶
- Type: typing.List[str]
Paths relative to project directory $CI_PROJECT_DIR
, found files will be used to create the artifacts.
public
Optional ¶
- Type: bool
True makes artifacts public.
reports
Optional ¶
- Type: typing.List[ArtifactsReport]
Reports must be a valid dictionary, the key represents a ArtifactsReport and the value must be a valid relativ file path to the reports file.
untracked
Optional ¶
- Type: bool
If true adds all untracked file to artifacts archive.
when
Optional ¶
- Type: WhenStatement
When to upload artifacts, Only on_success
, on_failure
or always
is allowed.
ArtifactsReport ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
file |
str |
Relative path withing the project, where to find the generated report file. |
report_type |
str |
https://docs.gitlab.com/ee/ci/yaml/artifacts_reports.html ArtifactsReport type to use. |
file
Required ¶
- Type: str
Relative path withing the project, where to find the generated report file.
report_type
Required ¶
- Type: str
https://docs.gitlab.com/ee/ci/yaml/artifacts_reports.html ArtifactsReport type to use.
CacheKeyProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
files |
typing.List[str] |
No description. |
key |
str |
No description. |
prefix |
str |
No description. |
files
Optional ¶
- Type: typing.List[str]
key
Optional ¶
- Type: str
- Default: gcix.PredefinedVariables.ciCommitRefSlug
prefix
Optional ¶
- Type: str
CacheProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
paths |
typing.List[str] |
No description. |
cache_key |
CacheKey |
No description. |
policy |
CachePolicy |
No description. |
untracked |
bool |
Set the untracked keyword to True to cache all files that are untracked in your Git repository. |
when |
WhenStatement |
No description. |
paths
Required ¶
- Type: typing.List[str]
cache_key
Optional ¶
- Type: CacheKey
- Default: to
CacheKey
with default arguments.
policy
Optional ¶
- Type: CachePolicy
untracked
Optional ¶
- Type: bool
Set the untracked keyword to True
to cache all files that are untracked in your Git repository.
when
Optional ¶
- Type: WhenStatement
ChildDict ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
child |
typing.Union[Job, JobCollection] |
No description. |
name |
str |
No description. |
stage |
str |
No description. |
child
Required ¶
- Type: typing.Union[Job, JobCollection]
name
Optional ¶
- Type: str
stage
Optional ¶
- Type: str
ImageProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
name |
str |
No description. |
entrypoint |
typing.List[str] |
No description. |
tag |
str |
No description. |
name
Required ¶
- Type: str
entrypoint
Optional ¶
- Type: typing.List[str]
tag
Optional ¶
- Type: str
IncludeArtifactProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
artifact |
str |
Relative path to the artifact which is produced by job . |
job |
str |
Job name to include the artifact from. |
artifact
Required ¶
- Type: str
Relative path to the artifact which is produced by job
.
job
Required ¶
- Type: str
Job name to include the artifact from.
IncludeFileProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
file |
str |
Relative path to the file to include. |
project |
str |
Project to include the file from. |
ref |
str |
Project branch to include the file from. |
file
Required ¶
- Type: str
Relative path to the file to include.
project
Required ¶
- Type: str
Project to include the file from.
ref
Optional ¶
- Type: str
Project branch to include the file from.
IncludeLocalProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
local |
str |
Relative path to the file within this repository to include. |
local
Required ¶
- Type: str
Relative path to the file within this repository to include.
IncludeRemoteProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
remote |
str |
URL to include the file from. |
remote
Required ¶
- Type: str
URL to include the file from.
IncludeTemplateProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
template |
str |
Gitlab template pipeline to include. |
template
Required ¶
- Type: str
Gitlab template pipeline to include.
JobProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
scripts |
typing.List[str] |
No description. |
allow_failure |
typing.Union[bool, typing.List[typing.Union[int, float]]] |
No description. |
artifacts |
Artifacts |
No description. |
cache |
Cache |
No description. |
dependencies |
typing.List[typing.Union[Job, JobCollection]] |
No description. |
image |
typing.Union[str, Image] |
No description. |
name |
str |
No description. |
needs |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
rules |
typing.List[Rule] |
No description. |
stage |
str |
No description. |
tags |
typing.List[str] |
No description. |
variables |
typing.Mapping[str] |
No description. |
scripts
Required ¶
- Type: typing.List[str]
allow_failure
Optional ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
artifacts
Optional ¶
- Type: Artifacts
cache
Optional ¶
- Type: Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection]]
image
Optional ¶
- Type: typing.Union[str, Image]
name
Optional ¶
- Type: str
needs
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
rules
Optional ¶
- Type: typing.List[Rule]
stage
Optional ¶
- Type: str
tags
Optional ¶
- Type: typing.List[str]
variables
Optional ¶
- Type: typing.Mapping[str]
NeedProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
artifacts |
bool |
No description. |
job |
str |
No description. |
pipeline |
str |
No description. |
project |
str |
No description. |
ref |
str |
No description. |
artifacts
Optional ¶
- Type: bool
- Default: true
job
Optional ¶
- Type: str
- Default: undefined but requires
pipeline
to be set.
pipeline
Optional ¶
- Type: str
- Default: undefined which requires
job
to be set.
project
Optional ¶
- Type: str
- Default: undefined
ref
Optional ¶
- Type: str
- Default: undefined
PipelineProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
includes |
typing.List[Include] |
You can add global gcix.Include s to the pipeline. Gitlab CI Documentation: "Use include to include external YAML files in your CI/CD configuration.". |
includes
Optional ¶
- Type: typing.List[Include]
You can add global gcix.Include
s to the pipeline. Gitlab CI Documentation: "Use include to include external YAML files in your CI/CD configuration.".
RenderedImage ¶
This module represents the Gitlab CI Image keyword. Use Image
to specify a Docker image to use for the gcix.Job
.
Instances of this class are intended to be immutable. Image objects are typically defined in a central location and often reused throughout the codebase. Modifying an Image object at one place may result in unexpected changes at any other reference to that object. Therefore, this class does not provide any setter methods to modify its properties directly.
However, you can create an altered copy of an Image object using the .withTag() and .withEntrypoint() methods. These methods return a new Image object with the specified modifications, allowing you to reuse the original Image object while making specific changes for a particular use case.
By following this approach, you can maintain a central repository of Image objects and easily create customized versions as needed, without affecting the original object or introducing unintended side effects.
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
name |
str |
No description. |
entrypoint |
typing.List[str] |
No description. |
name
Required ¶
- Type: str
entrypoint
Optional ¶
- Type: typing.List[str]
RenderedIncludeArtifact ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
artifact |
str |
No description. |
job |
str |
No description. |
artifact
Required ¶
- Type: str
job
Required ¶
- Type: str
RenderedIncludeFile ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
file |
str |
No description. |
project |
str |
No description. |
ref |
str |
No description. |
file
Required ¶
- Type: str
project
Required ¶
- Type: str
ref
Optional ¶
- Type: str
RenderedIncludeLocal ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
local |
str |
No description. |
local
Required ¶
- Type: str
RenderedIncludeRemote ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
remote |
str |
No description. |
remote
Required ¶
- Type: str
RenderedIncludeTemplate ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
template |
str |
No description. |
template
Required ¶
- Type: str
RenderedJob ¶
Initializer ¶
RuleProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
allow_failure |
bool |
No description. |
changes |
typing.List[str] |
No description. |
exists |
typing.List[str] |
No description. |
if_statement |
str |
No description. |
variables |
typing.Mapping[str] |
No description. |
when |
WhenStatement |
No description. |
allow_failure
Optional ¶
- Type: bool
- Default: false
changes
Optional ¶
- Type: typing.List[str]
exists
Optional ¶
- Type: typing.List[str]
if_statement
Optional ¶
- Type: str
variables
Optional ¶
- Type: typing.Mapping[str]
when
Optional ¶
- Type: WhenStatement
- Default: WhenStatement.ON_SUCCESS.
ServiceProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
name |
str |
No description. |
name
Required ¶
- Type: str
TriggerJobProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
branch |
str |
No description. |
includes |
typing.List[typing.Union[IncludeLocal, IncludeFile, IncludeRemote, IncludeTemplate, IncludeArtifact]] |
No description. |
name |
str |
No description. |
project |
str |
No description. |
stage |
str |
No description. |
strategy |
str |
No description. |
branch
Optional ¶
- Type: str
includes
Optional ¶
- Type: typing.List[typing.Union[IncludeLocal, IncludeFile, IncludeRemote, IncludeTemplate, IncludeArtifact]]
name
Optional ¶
- Type: str
project
Optional ¶
- Type: str
stage
Optional ¶
- Type: str
strategy
Optional ¶
- Type: str
Classes ¶
Artifacts ¶
- Implements: IArtifacts
This class represents the artifacts keyword.
Gitlab CI documentation: "Use artifacts to specify a list of files and
directories that are attached to the gcix.Job
when it succeeds,
fails, or always. [...] by default, gcix.Job
s in later stages
automatically download all the artifacts created by jobs in earlier stages.
You can control artifact download behavior in Job's with dependencies."
Initializers ¶
Name | Type | Description |
---|---|---|
excludes |
typing.List[str] |
Paths that prevent files from being added to an artifacts archive. |
expire_in |
str |
How long the artifacts will be saved before it gets deleted. |
expose_as |
str |
Used to expose artifacts in merge requests. |
name |
str |
Name of the artifacts archive. |
paths |
typing.List[str] |
Paths relative to project directory $CI_PROJECT_DIR , found files will be used to create the artifacts. |
public |
bool |
True makes artifacts public. |
reports |
typing.List[ArtifactsReport] |
Reports must be a valid dictionary, the key represents a ArtifactsReport and the value must be a valid relativ file path to the reports file. |
untracked |
bool |
If true adds all untracked file to artifacts archive. |
when |
WhenStatement |
When to upload artifacts, Only on_success , on_failure or always is allowed. |
excludes
Optional ¶
- Type: typing.List[str]
Paths that prevent files from being added to an artifacts archive.
expire_in
Optional ¶
- Type: str
How long the artifacts will be saved before it gets deleted.
expose_as
Optional ¶
- Type: str
Used to expose artifacts in merge requests.
name
Optional ¶
- Type: str
Name of the artifacts archive.
Internally defaults to {PredefinedVariables.ciJobName}-{PredefinedVariables.ciCommitRefSlug}.
paths
Optional ¶
- Type: typing.List[str]
Paths relative to project directory $CI_PROJECT_DIR
, found files will be used to create the artifacts.
public
Optional ¶
- Type: bool
True makes artifacts public.
reports
Optional ¶
- Type: typing.List[ArtifactsReport]
Reports must be a valid dictionary, the key represents a ArtifactsReport and the value must be a valid relativ file path to the reports file.
untracked
Optional ¶
- Type: bool
If true adds all untracked file to artifacts archive.
when
Optional ¶
- Type: WhenStatement
When to upload artifacts, Only on_success
, on_failure
or always
is allowed.
Methods ¶
Name | Description |
---|---|
add_excludes |
No description. |
add_paths |
No description. |
is_equal |
isEqual checks if this object is equal to given object. |
render |
Returns a representation of any object which implements IBase . |
add_excludes
¶
excludes
Required ¶
- Type: typing.List[str]
add_paths
¶
paths
Required ¶
- Type: typing.List[str]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
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 |
---|---|---|
excludes |
typing.List[str] |
No description. |
paths |
typing.List[str] |
No description. |
expire_in |
str |
No description. |
expose_as |
str |
No description. |
name |
str |
No description. |
public |
bool |
No description. |
reports |
typing.List[ArtifactsReport] |
No description. |
untracked |
bool |
No description. |
when |
WhenStatement |
No description. |
ordered_excludes |
OrderedStringSet |
No description. |
ordered_paths |
OrderedStringSet |
No description. |
excludes
Required ¶
- Type: typing.List[str]
paths
Required ¶
- Type: typing.List[str]
expire_in
Optional ¶
- Type: str
expose_as
Optional ¶
- Type: str
name
Optional ¶
- Type: str
public
Optional ¶
- Type: bool
reports
Optional ¶
- Type: typing.List[ArtifactsReport]
untracked
Optional ¶
- Type: bool
when
Optional ¶
- Type: WhenStatement
ordered_excludes
Required ¶
- Type: OrderedStringSet
ordered_paths
Required ¶
- Type: OrderedStringSet
Cache ¶
- Implements: ICache
This class represents the cache keyword.
Gitlab CI documentation:
"Use cache to specify a list of files and directories to cache between
gcix.Job
s. [...] Caching is shared between
gcix.Pipeline
s and gcix.Job
s.
Caches are restored before artifacts."
Initializers ¶
Name | Type | Description |
---|---|---|
paths |
typing.List[str] |
No description. |
cache_key |
CacheKey |
No description. |
policy |
CachePolicy |
No description. |
untracked |
bool |
Set the untracked keyword to True to cache all files that are untracked in your Git repository. |
when |
WhenStatement |
No description. |
paths
Required ¶
- Type: typing.List[str]
cache_key
Optional ¶
- Type: CacheKey
- Default: to
CacheKey
with default arguments.
policy
Optional ¶
- Type: CachePolicy
untracked
Optional ¶
- Type: bool
Set the untracked keyword to True
to cache all files that are untracked in your Git repository.
when
Optional ¶
- Type: WhenStatement
Methods ¶
Name | Description |
---|---|
is_equal |
isEqual checks if this object is equal to given object. |
render |
Returns a representation of any object which implements IBase . |
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
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 |
---|---|---|
cache_key |
CacheKey |
No description. |
paths |
typing.List[str] |
No description. |
policy |
CachePolicy |
No description. |
untracked |
bool |
No description. |
when |
WhenStatement |
No description. |
cache_key
Required ¶
- Type: CacheKey
paths
Required ¶
- Type: typing.List[str]
policy
Optional ¶
- Type: CachePolicy
untracked
Optional ¶
- Type: bool
when
Optional ¶
- Type: WhenStatement
CacheKey ¶
- Implements: ICacheKey
This class represents the cache:key keyword.
Gitlab CI documentation: "The key keyword defines the affinity of caching between jobs. You can have a single cache for all jobs, cache per-job, cache per-branch, or any other way that fits your workflow."
Initializers ¶
Name | Type | Description |
---|---|---|
files |
typing.List[str] |
No description. |
key |
str |
No description. |
prefix |
str |
No description. |
files
Optional ¶
- Type: typing.List[str]
key
Optional ¶
- Type: str
- Default: gcix.PredefinedVariables.ciCommitRefSlug
prefix
Optional ¶
- Type: str
Methods ¶
Name | Description |
---|---|
is_equal |
isEqual checks if this object is equal to given object. |
render |
Returns a representation of any object which implements IBase . |
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
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 |
---|---|---|
files |
typing.List[str] |
No description. |
key |
str |
No description. |
prefix |
str |
No description. |
files
Optional ¶
- Type: typing.List[str]
key
Optional ¶
- Type: str
prefix
Optional ¶
- Type: str
Image ¶
Initializers ¶
Name | Type | Description |
---|---|---|
name |
str |
No description. |
entrypoint |
typing.List[str] |
No description. |
tag |
str |
No description. |
name
Required ¶
- Type: str
entrypoint
Optional ¶
- Type: typing.List[str]
tag
Optional ¶
- Type: str
Methods ¶
Name | Description |
---|---|
is_equal |
isEqual checks if this object is equal to given object. |
render |
Returns a representation of any object which implements IBase . |
with_entrypoint |
No description. |
with_tag |
No description. |
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
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.
with_entrypoint
¶
entrypoint
Required ¶
- Type: typing.List[str]
with_tag
¶
tag
Required ¶
- Type: str
Properties ¶
Name | Type | Description |
---|---|---|
name |
str |
No description. |
entrypoint |
typing.List[str] |
No description. |
tag |
str |
No description. |
name
Required ¶
- Type: str
entrypoint
Optional ¶
- Type: typing.List[str]
tag
Optional ¶
- Type: str
Include ¶
- Implements: IInclude
This is just an abstract superclass.
Please use one of the subclasses:
IncludeLocal
IncludeFile
IncludeRemote
IncludeTemplate
IncludeArtifact
Initializers ¶
Name | Type | Description |
---|---|---|
Methods ¶
Name | Description |
---|---|
is_equal |
isEqual checks if this object is equal to given object. |
render |
Returns a representation of any object which implements IBase . |
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
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 |
---|---|---|
rendered |
typing.Any |
No description. |
rendered
Required ¶
- Type: typing.Any
IncludeArtifact ¶
- Implements: IIncludeArtifact
Initializers ¶
Name | Type | Description |
---|---|---|
artifact |
str |
Relative path to the artifact which is produced by job . |
job |
str |
Job name to include the artifact from. |
artifact
Required ¶
- Type: str
Relative path to the artifact which is produced by job
.
job
Required ¶
- Type: str
Job name to include the artifact from.
Methods ¶
Name | Description |
---|---|
is_equal |
isEqual checks if this object is equal to given object. |
render |
Returns a representation of any object which implements IBase . |
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
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 |
---|---|---|
rendered |
typing.Any |
No description. |
rendered
Required ¶
- Type: typing.Any
IncludeFile ¶
- Implements: IIncludeFile
This module represents the Gitlab CI include:file keyword.
Initializers ¶
Name | Type | Description |
---|---|---|
file |
str |
Relative path to the file to include. |
project |
str |
Project to include the file from. |
ref |
str |
Project branch to include the file from. |
file
Required ¶
- Type: str
Relative path to the file to include.
project
Required ¶
- Type: str
Project to include the file from.
ref
Optional ¶
- Type: str
Project branch to include the file from.
Methods ¶
Name | Description |
---|---|
is_equal |
isEqual checks if this object is equal to given object. |
render |
Returns a representation of any object which implements IBase . |
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
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 |
---|---|---|
rendered |
typing.Any |
No description. |
rendered
Required ¶
- Type: typing.Any
IncludeLocal ¶
- Implements: IIncludeLocal
This module represents the Gitlab CI include:local keyword.
Initializers ¶
Name | Type | Description |
---|---|---|
local |
str |
Relative path to the file within this repository to include. |
local
Required ¶
- Type: str
Relative path to the file within this repository to include.
Methods ¶
Name | Description |
---|---|
is_equal |
isEqual checks if this object is equal to given object. |
render |
Returns a representation of any object which implements IBase . |
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
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 |
---|---|---|
rendered |
typing.Any |
No description. |
rendered
Required ¶
- Type: typing.Any
IncludeRemote ¶
- Implements: IIncludeRemote
Initializers ¶
Name | Type | Description |
---|---|---|
remote |
str |
URL to include the file from. |
remote
Required ¶
- Type: str
URL to include the file from.
Methods ¶
Name | Description |
---|---|
is_equal |
isEqual checks if this object is equal to given object. |
render |
Returns a representation of any object which implements IBase . |
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
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 |
---|---|---|
rendered |
typing.Any |
No description. |
rendered
Required ¶
- Type: typing.Any
IncludeTemplate ¶
- Implements: IIncludeTemplate
Initializers ¶
Name | Type | Description |
---|---|---|
template |
str |
Gitlab template pipeline to include. |
template
Required ¶
- Type: str
Gitlab template pipeline to include.
Methods ¶
Name | Description |
---|---|
is_equal |
isEqual checks if this object is equal to given object. |
render |
Returns a representation of any object which implements IBase . |
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
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 |
---|---|---|
rendered |
typing.Any |
No description. |
rendered
Required ¶
- Type: typing.Any
Job ¶
- Implements: IJob
This class represents the Gitlab CI Job.
Initializers ¶
Name | Type | Description |
---|---|---|
scripts |
typing.List[str] |
No description. |
allow_failure |
typing.Union[bool, typing.List[typing.Union[int, float]]] |
No description. |
artifacts |
Artifacts |
No description. |
cache |
Cache |
No description. |
dependencies |
typing.List[typing.Union[Job, JobCollection]] |
No description. |
image |
typing.Union[str, Image] |
No description. |
name |
str |
No description. |
needs |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
rules |
typing.List[Rule] |
No description. |
stage |
str |
No description. |
tags |
typing.List[str] |
No description. |
variables |
typing.Mapping[str] |
No description. |
scripts
Required ¶
- Type: typing.List[str]
allow_failure
Optional ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
artifacts
Optional ¶
- Type: Artifacts
cache
Optional ¶
- Type: Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection]]
image
Optional ¶
- Type: typing.Union[str, Image]
name
Optional ¶
- Type: str
needs
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
rules
Optional ¶
- Type: typing.List[Rule]
stage
Optional ¶
- Type: str
tags
Optional ¶
- Type: typing.List[str]
variables
Optional ¶
- Type: typing.Mapping[str]
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
add_parent
¶
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: typing.Union[Job, JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: Artifacts
assign_cache
¶
cache
Required ¶
- Type: Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
assign_image
¶
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: typing.Union[str, Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
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: typing.Union[Job, JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
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 |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[Job, JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
Artifacts |
No description. |
cache |
Cache |
No description. |
dependencies |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
image |
Image |
No description. |
needs |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
original |
Job |
No description. |
rules |
typing.List[Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: Artifacts
cache
Optional ¶
- Type: Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
image
Optional ¶
- Type: Image
needs
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
original
Optional ¶
- Type: Job
rules
Optional ¶
- Type: typing.List[Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
JobCollection ¶
- Implements: IJobCollection
A JobCollection collects multiple gcix.Job
s and/or other gcix.JobCollection
s into a group.
Initializers ¶
Name | Type | Description |
---|---|---|
Methods ¶
Name | Description |
---|---|
add_children |
Add gcix.Job s or other gcix.JobCollection s to this JobCollection. |
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
No description. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
get_all_instance_names |
Return all instance names from the given child. |
initialize_allow_failure |
Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection that haven't been set the allowFailure before. |
initialize_artifacts |
Sets gcix.Job.artifacts to all jobs within this JobCollection that haven't been set the artifacs before. |
initialize_cache |
Calling gcix.Job.assigneCache() to all jobs within this JobCollection that haven't been set the cache before. |
initialize_dependencies |
Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection that haven't been added dependencies before. |
initialize_image |
Calling gcix.Job.assignImage() to all jobs within this JobCollection. |
initialize_needs |
Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection that haven't been added needs before. |
initialize_rules |
Calling gcix.Job.append_rules() to all jobs within this JobCollection that haven't been added rules before. |
initialize_tags |
Calling gcix.Job.addTags([...]) to all jobs within this JobCollection that haven't been added tags before. |
initialize_variables |
Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection that haven't been added variables before. |
is_equal |
isEqual checks if this object is equal to given object. |
override_allow_failure |
Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection overriding any previous set value. |
override_dependencies |
Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection and overriding any previously added dependencies to that jobs. |
override_image |
Calling gcix.Job.assignImage() to all jobs within this JobCollection overriding any previous set value. |
override_needs |
Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection and overriding any previously added needs to that jobs. |
override_rules |
Calling gcix.Job.overrideRules() to all jobs within this JobCollection and overriding any previously added rules to that jobs. |
override_tags |
Calling gcix.Job.addTags([...]) to all jobs within this JobCollection and overriding any previously added tags to that jobs. |
override_variables |
Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection and overriding any previously added variables to that jobs. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_children
¶
Add gcix.Job
s or other gcix.JobCollection
s to this JobCollection.
Adding a child creates a copy of that child. You should provide a name or stage when adding children, to make them different from other places where they will be used.
jobs_or_job_collections
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection]]
name
Optional ¶
- Type: str
stage
Optional ¶
- Type: str
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
add_parent
¶
parent
Required ¶
- Type: JobCollection
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_artifacts
¶
artifacts
Required ¶
- Type: Artifacts
assign_cache
¶
cache
Required ¶
- Type: Cache
get_all_instance_names
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this JobCollection and all parent JobCollection's.
child
Optional ¶
- Type: typing.Union[Job, JobCollection]
initialize_allow_failure
¶
Calling gcix.Job.assignAllowFailure()
to all jobs within this JobCollection that haven't been set the allowFailure before.
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
initialize_artifacts
¶
Sets gcix.Job.artifacts
to all jobs within this JobCollection that haven't been set the artifacs before.
artifacts
Required ¶
- Type: Artifacts
initialize_cache
¶
Calling gcix.Job.assigneCache()
to all jobs within this JobCollection that haven't been set the cache before.
cache
Required ¶
- Type: Cache
initialize_dependencies
¶
Calling gcix.Job.assignDependencies()
to all jobs within the first stage of this JobCollection that haven't been added dependencies before.
An empty parameter list means that jobs will get an empty dependency list and thus does not download artifacts by default.
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
initialize_image
¶
Calling gcix.Job.assignImage()
to all jobs within this JobCollection.
image
Required ¶
- Type: typing.Union[str, Image]
initialize_needs
¶
Calling gcix.Job.assignNeeds()
to all jobs within the first stage of this JobCollection that haven't been added needs before.
An empty parameter list means that jobs will get an empty dependency list and thus does not depend on other jobs by default.
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
initialize_rules
¶
Calling gcix.Job.append_rules()
to all jobs within this JobCollection that haven't been added rules before.
rules
Required ¶
- Type: typing.List[Rule]
initialize_tags
¶
Calling gcix.Job.addTags([...])
to all jobs within this JobCollection that haven't been added tags before.
tags
Required ¶
- Type: typing.List[str]
initialize_variables
¶
Calling gcix.Job.addVariables({...})
to all jobs within this JobCollection that haven't been added variables before.
variables
Required ¶
- Type: typing.Mapping[str]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
override_allow_failure
¶
Calling gcix.Job.assignAllowFailure()
to all jobs within this JobCollection overriding any previous set value.
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
override_dependencies
¶
Calling gcix.Job.assignDependencies()
to all jobs within the first stage of this JobCollection and overriding any previously added dependencies to that jobs.
An empty parameter list means that jobs will get an empty dependency list and thus does not download artifacts.
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
override_image
¶
Calling gcix.Job.assignImage()
to all jobs within this JobCollection overriding any previous set value.
image
Required ¶
- Type: typing.Union[str, Image]
override_needs
¶
Calling gcix.Job.assignNeeds()
to all jobs within the first stage of this JobCollection and overriding any previously added needs to that jobs.
An empty parameter list means that jobs will get an empty dependency list and thus does not depend on other jobs.
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
override_rules
¶
Calling gcix.Job.overrideRules()
to all jobs within this JobCollection and overriding any previously added rules to that jobs.
rules
Required ¶
- Type: typing.List[Rule]
override_tags
¶
Calling gcix.Job.addTags([...])
to all jobs within this JobCollection and overriding any previously added tags to that jobs.
tags
Required ¶
- Type: typing.List[str]
override_variables
¶
Calling gcix.Job.addVariables({...})
to all jobs within this JobCollection and overriding any previously added variables to that jobs.
variables
Required ¶
- Type: typing.Mapping[str]
prepend_rules
¶
rules
Required ¶
- Type: typing.List[Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
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 |
---|---|---|
last_jobs_executed |
typing.List[Job] |
This property returns all Jobs from the last stage of this JobCollection. |
nested_jobs |
typing.List[Job] |
No description. |
populated_jobs |
typing.List[Job] |
Returns a list with populated copies of all nested jobs of this JobCollection. |
children |
typing.List[ChildDict] |
No description. |
ordered_tags |
OrderedStringSet |
No description. |
ordered_tags_for_initialization |
OrderedStringSet |
No description. |
ordered_tags_for_replacement |
OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[Job, JobCollection]] |
No description. |
allow_failure_for_initialization |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
allow_failure_for_replacement |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
artifacts |
Artifacts |
No description. |
artifacts_for_initialization |
Artifacts |
No description. |
artifacts_for_replacement |
Artifacts |
No description. |
cache |
Cache |
No description. |
cache_for_initialization |
Cache |
No description. |
dependencies |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
dependencies_for_initialization |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
dependencies_for_replacement |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
image_for_initialization |
typing.Union[str, Image] |
No description. |
image_for_replacement |
typing.Union[str, Image] |
No description. |
needs |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
needs_for_initialization |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
needs_for_replacement |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
rules_for_initialization |
typing.List[Rule] |
No description. |
rules_for_replacement |
typing.List[Rule] |
No description. |
rules_to_append |
typing.List[Rule] |
No description. |
rules_to_prepend |
typing.List[Rule] |
No description. |
scripts_to_append |
typing.List[str] |
No description. |
scripts_to_prepend |
typing.List[str] |
No description. |
variables |
typing.Mapping[str] |
No description. |
variables_for_initialization |
typing.Mapping[str] |
No description. |
variables_for_replacement |
typing.Mapping[str] |
No description. |
last_jobs_executed
Required ¶
- Type: typing.List[Job]
This property returns all Jobs from the last stage of this JobCollection.
This is typically be requested from a job which has setup this JobCollection as need, to determine all actual jobs of this JobCollection as need.
nested_jobs
Required ¶
- Type: typing.List[Job]
populated_jobs
Required ¶
- Type: typing.List[Job]
Returns a list with populated copies of all nested jobs of this JobCollection.
Populated means, that all attributes of a Job which depends on its context are resolved to their final values. The context is primarily the JobCollection within the jobs resides but also dependencies to other jobs and JobCollection's. Thus this JobCollection will apply its own configuration, like variables to add, tags to set, etc., to all its jobs and JobCollection's.
Copies means what it says, that the returned job are not the same job objects, originally added to this JobCollection, but copies of them.
Nested means, that also jobs from JobCollection's within this JobCollection, are returned, as well as jobs from JobCollection's within JobCollection's within this JobCollection and so on.
children
Required ¶
- Type: typing.List[ChildDict]
ordered_tags
Required ¶
- Type: OrderedStringSet
ordered_tags_for_initialization
Required ¶
- Type: OrderedStringSet
ordered_tags_for_replacement
Required ¶
- Type: OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection]]
allow_failure_for_initialization
Optional ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
allow_failure_for_replacement
Optional ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
artifacts
Optional ¶
- Type: Artifacts
artifacts_for_initialization
Optional ¶
- Type: Artifacts
artifacts_for_replacement
Optional ¶
- Type: Artifacts
cache
Optional ¶
- Type: Cache
cache_for_initialization
Optional ¶
- Type: Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
dependencies_for_initialization
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
dependencies_for_replacement
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
image_for_initialization
Optional ¶
- Type: typing.Union[str, Image]
image_for_replacement
Optional ¶
- Type: typing.Union[str, Image]
needs
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
needs_for_initialization
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
needs_for_replacement
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
rules_for_initialization
Optional ¶
- Type: typing.List[Rule]
rules_for_replacement
Optional ¶
- Type: typing.List[Rule]
rules_to_append
Optional ¶
- Type: typing.List[Rule]
rules_to_prepend
Optional ¶
- Type: typing.List[Rule]
scripts_to_append
Optional ¶
- Type: typing.List[str]
scripts_to_prepend
Optional ¶
- Type: typing.List[str]
variables
Optional ¶
- Type: typing.Mapping[str]
variables_for_initialization
Optional ¶
- Type: typing.Mapping[str]
variables_for_replacement
Optional ¶
- Type: typing.Mapping[str]
Need ¶
- Implements: INeed
This class represents the Gitlab CI needs keyword. The needs
key-word adds a possibility to allow out-of-order Gitlab CI jobs. A job which needed another job runs directly after the other job as finished successfully.
Initializers ¶
Name | Type | Description |
---|---|---|
artifacts |
bool |
No description. |
job |
str |
No description. |
pipeline |
str |
No description. |
project |
str |
No description. |
ref |
str |
No description. |
artifacts
Optional ¶
- Type: bool
- Default: true
job
Optional ¶
- Type: str
- Default: undefined but requires
pipeline
to be set.
pipeline
Optional ¶
- Type: str
- Default: undefined which requires
job
to be set.
project
Optional ¶
- Type: str
- Default: undefined
ref
Optional ¶
- Type: str
- Default: undefined
Methods ¶
Name | Description |
---|---|
is_equal |
isEqual checks if this object is equal to given object. |
render |
Returns a representation of any object which implements IBase . |
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
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 |
---|---|---|
artifacts |
bool |
No description. |
job |
str |
No description. |
pipeline |
str |
No description. |
project |
str |
No description. |
ref |
str |
No description. |
artifacts
Optional ¶
- Type: bool
job
Optional ¶
- Type: str
pipeline
Optional ¶
- Type: str
project
Optional ¶
- Type: str
ref
Optional ¶
- Type: str
OrderedStringSet ¶
Represents an ordered set of strings.
Initializers ¶
Name | Type | Description |
---|---|---|
values |
typing.List[str] |
An optional array of values to initialize the set. |
values
Optional ¶
- Type: typing.List[str]
An optional array of values to initialize the set.
Methods ¶
Name | Description |
---|---|
add |
Adds a value or an array of values to the set. |
clear |
Clears the set, removing all values. |
delete |
Deletes a value from the set. |
has |
Checks if the set contains a specific value. |
add
¶
Adds a value or an array of values to the set.
value
Required ¶
- Type: typing.Union[str, typing.List[str]]
The value(s) to add.
clear
¶
Clears the set, removing all values.
delete
¶
Deletes a value from the set.
value
Required ¶
- Type: str
The value to delete.
has
¶
Checks if the set contains a specific value.
value
Required ¶
- Type: str
The value to check.
Properties ¶
Name | Type | Description |
---|---|---|
size |
typing.Union[int, float] |
Returns the number of values in the set. |
values |
typing.List[str] |
Returns an array of values in the set. |
size
Required ¶
- Type: typing.Union[int, float]
Returns the number of values in the set.
values
Required ¶
- Type: typing.List[str]
Returns an array of values in the set.
PagesJob ¶
- Implements: IPagesJob
This is a special kind of jobs which deploys Gitlab Pages.
This job has the static name pages
and the static artifacts path
./public
. Both preconfigurations can't be altered and are required for
deploying Gitlab Pages properly. All methods which would typically alter the
name, stage and artifacts of a job are overwritten with an empty
implementation.
This job is only for deploying Gitlab Pages artifacts within the ./public
artifacts path. To create the artifacts you have to run jobs, that generate
those artifacts within the same ./public
artifacts path, before this
PagesJob in the pipeline.
Because the name of the job can't be altered, this job may only exist once
in the generated pipeline output.
Typically you should add the PagesJob to the gcix.Pipeline
.
The PagesJob is also preconfigured with the stage pages
and the image
alpine:latest
. To change the stage of this job, use the assignStage()
method. Please mention to run this job in a stage after all jobs, that fill
the public
artifacts path with content.
Here a simple example how to use the GitlabPages job:
Initializers ¶
Name | Type | Description |
---|---|---|
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
assign_stage |
Set the name of this jobs stage to a value other than pages . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
add_parent
¶
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: typing.Union[Job, JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: Artifacts
assign_cache
¶
cache
Required ¶
- Type: Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
assign_image
¶
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: typing.Union[str, Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
name
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
name
Required ¶
- Type: str
get_all_instance_names
¶
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: typing.Union[Job, JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
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.
assign_stage
¶
Set the name of this jobs stage to a value other than pages
.
stage
Required ¶
- Type: str
Properties ¶
Name | Type | Description |
---|---|---|
tags |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[Job, JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
Artifacts |
No description. |
cache |
Cache |
No description. |
dependencies |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
image |
Image |
No description. |
needs |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
original |
Job |
No description. |
rules |
typing.List[Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: Artifacts
cache
Optional ¶
- Type: Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
image
Optional ¶
- Type: Image
needs
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
original
Optional ¶
- Type: Job
rules
Optional ¶
- Type: typing.List[Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
Pipeline ¶
- Implements: IPipeline
Initializers ¶
Name | Type | Description |
---|---|---|
includes |
typing.List[Include] |
You can add global gcix.Include s to the pipeline. Gitlab CI Documentation: "Use include to include external YAML files in your CI/CD configuration.". |
includes
Optional ¶
- Type: typing.List[Include]
You can add global gcix.Include
s to the pipeline. Gitlab CI Documentation: "Use include to include external YAML files in your CI/CD configuration.".
Methods ¶
Name | Description |
---|---|
add_children |
Add gcix.Job s or other gcix.JobCollection s to this JobCollection. |
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
No description. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
get_all_instance_names |
Return all instance names from the given child. |
initialize_allow_failure |
Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection that haven't been set the allowFailure before. |
initialize_artifacts |
Sets gcix.Job.artifacts to all jobs within this JobCollection that haven't been set the artifacs before. |
initialize_cache |
Calling gcix.Job.assigneCache() to all jobs within this JobCollection that haven't been set the cache before. |
initialize_dependencies |
Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection that haven't been added dependencies before. |
initialize_image |
Calling gcix.Job.assignImage() to all jobs within this JobCollection. |
initialize_needs |
Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection that haven't been added needs before. |
initialize_rules |
Calling gcix.Job.append_rules() to all jobs within this JobCollection that haven't been added rules before. |
initialize_tags |
Calling gcix.Job.addTags([...]) to all jobs within this JobCollection that haven't been added tags before. |
initialize_variables |
Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection that haven't been added variables before. |
is_equal |
isEqual checks if this object is equal to given object. |
override_allow_failure |
Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection overriding any previous set value. |
override_dependencies |
Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection and overriding any previously added dependencies to that jobs. |
override_image |
Calling gcix.Job.assignImage() to all jobs within this JobCollection overriding any previous set value. |
override_needs |
Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection and overriding any previously added needs to that jobs. |
override_rules |
Calling gcix.Job.overrideRules() to all jobs within this JobCollection and overriding any previously added rules to that jobs. |
override_tags |
Calling gcix.Job.addTags([...]) to all jobs within this JobCollection and overriding any previously added tags to that jobs. |
override_variables |
Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection and overriding any previously added variables to that jobs. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_include |
Let you add global gcix.Include s to the pipeline. Gitlab CI Documentation: "Use include to include external YAML files in your CI/CD configuration.". |
add_services |
Add one or more gcix.Service s to the pipeline. |
write_yaml |
Create the Gitlab CI YAML file from this pipeline object. |
add_children
¶
Add gcix.Job
s or other gcix.JobCollection
s to this JobCollection.
Adding a child creates a copy of that child. You should provide a name or stage when adding children, to make them different from other places where they will be used.
jobs_or_job_collections
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection]]
name
Optional ¶
- Type: str
stage
Optional ¶
- Type: str
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
add_parent
¶
parent
Required ¶
- Type: JobCollection
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_artifacts
¶
artifacts
Required ¶
- Type: Artifacts
assign_cache
¶
cache
Required ¶
- Type: Cache
get_all_instance_names
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this JobCollection and all parent JobCollection's.
child
Optional ¶
- Type: typing.Union[Job, JobCollection]
initialize_allow_failure
¶
Calling gcix.Job.assignAllowFailure()
to all jobs within this JobCollection that haven't been set the allowFailure before.
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
initialize_artifacts
¶
Sets gcix.Job.artifacts
to all jobs within this JobCollection that haven't been set the artifacs before.
artifacts
Required ¶
- Type: Artifacts
initialize_cache
¶
Calling gcix.Job.assigneCache()
to all jobs within this JobCollection that haven't been set the cache before.
cache
Required ¶
- Type: Cache
initialize_dependencies
¶
Calling gcix.Job.assignDependencies()
to all jobs within the first stage of this JobCollection that haven't been added dependencies before.
An empty parameter list means that jobs will get an empty dependency list and thus does not download artifacts by default.
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
initialize_image
¶
Calling gcix.Job.assignImage()
to all jobs within this JobCollection.
image
Required ¶
- Type: typing.Union[str, Image]
initialize_needs
¶
Calling gcix.Job.assignNeeds()
to all jobs within the first stage of this JobCollection that haven't been added needs before.
An empty parameter list means that jobs will get an empty dependency list and thus does not depend on other jobs by default.
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
initialize_rules
¶
Calling gcix.Job.append_rules()
to all jobs within this JobCollection that haven't been added rules before.
rules
Required ¶
- Type: typing.List[Rule]
initialize_tags
¶
Calling gcix.Job.addTags([...])
to all jobs within this JobCollection that haven't been added tags before.
tags
Required ¶
- Type: typing.List[str]
initialize_variables
¶
Calling gcix.Job.addVariables({...})
to all jobs within this JobCollection that haven't been added variables before.
variables
Required ¶
- Type: typing.Mapping[str]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
override_allow_failure
¶
Calling gcix.Job.assignAllowFailure()
to all jobs within this JobCollection overriding any previous set value.
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
override_dependencies
¶
Calling gcix.Job.assignDependencies()
to all jobs within the first stage of this JobCollection and overriding any previously added dependencies to that jobs.
An empty parameter list means that jobs will get an empty dependency list and thus does not download artifacts.
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
override_image
¶
Calling gcix.Job.assignImage()
to all jobs within this JobCollection overriding any previous set value.
image
Required ¶
- Type: typing.Union[str, Image]
override_needs
¶
Calling gcix.Job.assignNeeds()
to all jobs within the first stage of this JobCollection and overriding any previously added needs to that jobs.
An empty parameter list means that jobs will get an empty dependency list and thus does not depend on other jobs.
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
override_rules
¶
Calling gcix.Job.overrideRules()
to all jobs within this JobCollection and overriding any previously added rules to that jobs.
rules
Required ¶
- Type: typing.List[Rule]
override_tags
¶
Calling gcix.Job.addTags([...])
to all jobs within this JobCollection and overriding any previously added tags to that jobs.
tags
Required ¶
- Type: typing.List[str]
override_variables
¶
Calling gcix.Job.addVariables({...})
to all jobs within this JobCollection and overriding any previously added variables to that jobs.
variables
Required ¶
- Type: typing.Mapping[str]
prepend_rules
¶
rules
Required ¶
- Type: typing.List[Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
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.
add_include
¶
Let you add global gcix.Include
s to the pipeline. Gitlab CI Documentation: "Use include to include external YAML files in your CI/CD configuration.".
include
Required ¶
- Type: Include
add_services
¶
Add one or more gcix.Service
s to the pipeline.
Gitlab CI Documentation: "The services keyword defines a Docker image that runs during a job linked to the Docker image that the image keyword defines."
services
Required ¶
- Type: typing.List[Service]
write_yaml
¶
Create the Gitlab CI YAML file from this pipeline object.
Use that YAML file to trigger a child pipeline.
filename
Optional ¶
- Type: str
Properties ¶
Name | Type | Description |
---|---|---|
last_jobs_executed |
typing.List[Job] |
This property returns all Jobs from the last stage of this JobCollection. |
nested_jobs |
typing.List[Job] |
No description. |
populated_jobs |
typing.List[Job] |
Returns a list with populated copies of all nested jobs of this JobCollection. |
children |
typing.List[ChildDict] |
No description. |
ordered_tags |
OrderedStringSet |
No description. |
ordered_tags_for_initialization |
OrderedStringSet |
No description. |
ordered_tags_for_replacement |
OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[Job, JobCollection]] |
No description. |
allow_failure_for_initialization |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
allow_failure_for_replacement |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
artifacts |
Artifacts |
No description. |
artifacts_for_initialization |
Artifacts |
No description. |
artifacts_for_replacement |
Artifacts |
No description. |
cache |
Cache |
No description. |
cache_for_initialization |
Cache |
No description. |
dependencies |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
dependencies_for_initialization |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
dependencies_for_replacement |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
image_for_initialization |
typing.Union[str, Image] |
No description. |
image_for_replacement |
typing.Union[str, Image] |
No description. |
needs |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
needs_for_initialization |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
needs_for_replacement |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
rules_for_initialization |
typing.List[Rule] |
No description. |
rules_for_replacement |
typing.List[Rule] |
No description. |
rules_to_append |
typing.List[Rule] |
No description. |
rules_to_prepend |
typing.List[Rule] |
No description. |
scripts_to_append |
typing.List[str] |
No description. |
scripts_to_prepend |
typing.List[str] |
No description. |
variables |
typing.Mapping[str] |
No description. |
variables_for_initialization |
typing.Mapping[str] |
No description. |
variables_for_replacement |
typing.Mapping[str] |
No description. |
includes |
typing.List[Include] |
No description. |
service |
typing.List[Service] |
No description. |
last_jobs_executed
Required ¶
- Type: typing.List[Job]
This property returns all Jobs from the last stage of this JobCollection.
This is typically be requested from a job which has setup this JobCollection as need, to determine all actual jobs of this JobCollection as need.
nested_jobs
Required ¶
- Type: typing.List[Job]
populated_jobs
Required ¶
- Type: typing.List[Job]
Returns a list with populated copies of all nested jobs of this JobCollection.
Populated means, that all attributes of a Job which depends on its context are resolved to their final values. The context is primarily the JobCollection within the jobs resides but also dependencies to other jobs and JobCollection's. Thus this JobCollection will apply its own configuration, like variables to add, tags to set, etc., to all its jobs and JobCollection's.
Copies means what it says, that the returned job are not the same job objects, originally added to this JobCollection, but copies of them.
Nested means, that also jobs from JobCollection's within this JobCollection, are returned, as well as jobs from JobCollection's within JobCollection's within this JobCollection and so on.
children
Required ¶
- Type: typing.List[ChildDict]
ordered_tags
Required ¶
- Type: OrderedStringSet
ordered_tags_for_initialization
Required ¶
- Type: OrderedStringSet
ordered_tags_for_replacement
Required ¶
- Type: OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection]]
allow_failure_for_initialization
Optional ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
allow_failure_for_replacement
Optional ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
artifacts
Optional ¶
- Type: Artifacts
artifacts_for_initialization
Optional ¶
- Type: Artifacts
artifacts_for_replacement
Optional ¶
- Type: Artifacts
cache
Optional ¶
- Type: Cache
cache_for_initialization
Optional ¶
- Type: Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
dependencies_for_initialization
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
dependencies_for_replacement
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
image_for_initialization
Optional ¶
- Type: typing.Union[str, Image]
image_for_replacement
Optional ¶
- Type: typing.Union[str, Image]
needs
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
needs_for_initialization
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
needs_for_replacement
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
rules_for_initialization
Optional ¶
- Type: typing.List[Rule]
rules_for_replacement
Optional ¶
- Type: typing.List[Rule]
rules_to_append
Optional ¶
- Type: typing.List[Rule]
rules_to_prepend
Optional ¶
- Type: typing.List[Rule]
scripts_to_append
Optional ¶
- Type: typing.List[str]
scripts_to_prepend
Optional ¶
- Type: typing.List[str]
variables
Optional ¶
- Type: typing.Mapping[str]
variables_for_initialization
Optional ¶
- Type: typing.Mapping[str]
variables_for_replacement
Optional ¶
- Type: typing.Mapping[str]
includes
Required ¶
- Type: typing.List[Include]
service
Required ¶
- Type: typing.List[Service]
PredefinedVariables ¶
This class contains constants for Gitlab CI predefined variables.
Initializers ¶
Name | Type | Description |
---|---|---|
Properties ¶
Name | Type | Description |
---|---|---|
chat_channel |
str |
Source chat channel which triggered the ChatOps command. |
chat_input |
str |
Additional arguments passed in the ChatOps command. |
ci |
str |
Mark that job is executed in CI environment. |
ci_api_v4_url |
str |
The GitLab API v4 root URL. |
ci_builds_dir |
str |
Top-level directory where builds are executed. |
ci_commit_before_sha |
str |
The previous latest commit present on a branch. Is always 0000000000000000000000000000000000000000 in pipelines for merge requests. |
ci_commit_description |
str |
The description of the commit the message without first line, if the title is shorter than 100 characters; |
ci_commit_message |
str |
The full commit message. |
ci_commit_ref_name |
str |
The branch or tag name for which project is built. |
ci_commit_ref_protected |
str |
true if the job is running on a protected reference, false if not. |
ci_commit_ref_slug |
str |
$CI_COMMIT_REF_NAME in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. |
ci_commit_sha |
str |
The commit revision for which project is built. |
ci_commit_short_sha |
str |
The first eight characters of CI_COMMIT_SHA. |
ci_commit_timestamp |
str |
The timestamp of the commit in the ISO 8601 format. |
ci_commit_title |
str |
The title of the commit - the full first line of the message. |
ci_concurrent_id |
str |
Unique ID of build execution in a single executor. |
ci_concurrent_project_id |
str |
Unique ID of build execution in a single executor and project. |
ci_config_path |
str |
The path to CI configuration file. Defaults to .gitlab-ci.yml. |
ci_debug_trace |
str |
Whether debug logging (tracing) is enabled. |
ci_default_branch |
str |
The name of the default branch for the project. |
ci_dependency_proxy_group_image_prefix |
str |
The image prefix for pulling images through the Dependency Proxy. |
ci_dependency_proxy_password |
str |
The password to use to pull images through the Dependency Proxy. |
ci_dependency_proxy_server |
str |
The server for logging in to the Dependency Proxy. This is equivalent to $CI_SERVER_HOST:$CI_SERVER_PORT. |
ci_dependency_proxy_user |
str |
The username to use to pull images through the Dependency Proxy. |
ci_deploy_password |
str |
Authentication password of the GitLab Deploy Token, only present if the Project has one related. |
ci_deploy_user |
str |
Authentication username of the GitLab Deploy Token, only present if the Project has one related. |
ci_job_id |
str |
The unique ID of the current job that GitLab CI/CD uses internally. |
ci_job_image |
str |
The name of the image running the CI job. |
ci_job_jwt |
str |
RS256 JSON web token that can be used for authenticating with third party systems that support JWT authentication, for example HashiCorp’s Vault. |
ci_job_manual |
str |
The flag to indicate that job was manually started. |
ci_job_name |
str |
The name of the job as defined in .gitlab-ci.yml. |
ci_job_stage |
str |
The name of the stage as defined in .gitlab-ci.yml. |
ci_job_status |
str |
The state of the job as each runner stage is executed. |
ci_job_token |
str |
Token used for authenticating with a few API endpoints and downloading dependent repositories. |
ci_job_url |
str |
Job details URL. |
ci_merge_request_target_branch_name |
str |
The target branch name of the merge request if the pipelines are for merge requests. |
ci_merge_request_target_branch_sha |
str |
The HEAD SHA of the target branch of the merge request if the pipelines are for merge requests. |
ci_node_total |
str |
Total number of instances of this job running in parallel. |
ci_pages_domain |
str |
The configured domain that hosts GitLab Pages. |
ci_pages_url |
str |
URL to GitLab Pages-built pages. Always belongs to a subdomain of CI_PAGES_DOMAIN. |
ci_pipeline_id |
str |
The instance-level ID of the current pipeline. This is a unique ID across all projects on GitLab. |
ci_pipeline_iid |
str |
The project-level IID (internal ID) of the current pipeline. This ID is unique for the current project. |
ci_pipeline_source |
str |
Indicates how the pipeline was triggered. |
ci_pipeline_triggered |
str |
The flag to indicate that job was triggered. |
ci_pipeline_url |
str |
Pipeline details URL. |
ci_project_config_path |
str |
The CI configuration path for the project. |
ci_project_dir |
str |
The full path where the repository is cloned and where the job is run. |
ci_project_id |
str |
The unique ID of the current project that GitLab CI/CD uses internally. |
ci_project_name |
str |
The name of the directory for the project that is being built. |
ci_project_namespace |
str |
The project stage (username or group name) that is being built. |
ci_project_path |
str |
The stage with project name. |
ci_project_path_slug |
str |
$CI_PROJECT_PATH in lowercase and with everything except 0-9 and a-z replaced with -. Use in URLs and domain names. |
ci_project_repository_languages |
str |
Comma-separated, lowercase list of the languages used in the repository (for example ruby,javascript,html,css). |
ci_project_root_namespace |
str |
The root project stage (username or group name) that is being built. |
ci_project_title |
str |
The human-readable project name as displayed in the GitLab web interface. |
ci_project_url |
str |
The HTTP(S) address to access project. |
ci_project_visibility |
str |
The project visibility (internal, private, public). |
ci_registry_password |
str |
The password to use to push containers to the GitLab Container Registry, for the current project. |
ci_repository_url |
str |
The URL to clone the Git repository. |
ci_runner_description |
str |
The description of the runner as saved in GitLab. |
ci_runner_executable_arch |
str |
The OS/architecture of the GitLab Runner executable (note that this is not necessarily the same as the environment of the executor). |
ci_runner_id |
str |
The unique ID of runner being used. |
ci_runner_revision |
str |
GitLab Runner revision that is executing the current job. |
ci_runner_short_token |
str |
First eight characters of the runner’s token used to authenticate new job requests. Used as the runner’s unique ID. |
ci_runner_tags |
str |
The defined runner tags. |
ci_runner_version |
str |
GitLab Runner version that is executing the current job. |
ci_server |
str |
Mark that job is executed in CI environment. |
ci_server_host |
str |
Host component of the GitLab instance URL, without protocol and port (like gitlab.example.com). |
ci_server_name |
str |
The name of CI server that is used to coordinate jobs. |
ci_server_port |
str |
Port component of the GitLab instance URL, without host and protocol (like 3000). |
ci_server_protocol |
str |
Protocol component of the GitLab instance URL, without host and port (like https). |
ci_server_revision |
str |
GitLab revision that is used to schedule jobs. |
ci_server_url |
str |
The base URL of the GitLab instance, including protocol and port (like https://gitlab.example.com:8080). |
ci_server_version |
str |
GitLab version that is used to schedule jobs. |
ci_server_version_major |
str |
GitLab version major component. |
ci_server_version_minor |
str |
GitLab version minor component. |
ci_server_version_patch |
str |
GitLab version patch component. |
gitlab_ci |
str |
Mark that job is executed in GitLab CI/CD environment. |
gitlab_features |
str |
The comma separated list of licensed features available for your instance and plan. |
gitlab_user_email |
str |
The email of the user who started the job. |
gitlab_user_id |
str |
The ID of the user who started the job. |
gitlab_user_login |
str |
The login username of the user who started the job. |
gitlab_user_name |
str |
The real name of the user who started the job. |
ci_commit_branch |
str |
The commit branch name. |
ci_commit_tag |
str |
The commit tag name. Present only when building tags. |
ci_deploy_freeze |
str |
Included with the value true if the pipeline runs during a deploy freeze window. |
ci_disposable_environment |
str |
Marks that the job is executed in a disposable environment (something that is created only for this job and disposed of/destroyed after the execution - all executors except shell and ssh). |
ci_environment_name |
str |
The name of the environment for this job. Only present if environment:name is set. |
ci_environment_slug |
str |
A simplified version of the environment name, suitable for inclusion in DNS, URLs, Kubernetes labels, and so on. |
ci_environment_url |
str |
The URL of the environment for this job. Only present if environment:url is set. |
ci_external_pull_request_iid |
str |
Pull Request ID from GitHub if the pipelines are for external pull requests. |
ci_external_pull_request_source_branch_name |
str |
The source branch name of the pull request if the pipelines are for external pull requests. |
ci_external_pull_request_source_branch_sha |
str |
The HEAD SHA of the source branch of the pull request if the pipelines are for external pull requests. |
ci_external_pull_request_source_repository |
str |
The source repository name of the pull request if the pipelines are for external pull requests. |
ci_external_pull_request_target_branch_name |
str |
The target branch name of the pull request if the pipelines are for external pull requests. |
ci_external_pull_request_target_branch_sha |
str |
The HEAD SHA of the target branch of the pull request if the pipelines are for external pull requests. |
ci_external_pull_request_target_repository |
str |
The target repository name of the pull request if the pipelines are for external pull requests. |
ci_has_open_requirements |
str |
Included with the value true only if the pipeline’s project has any open requirements. |
ci_kubernetes_active |
str |
Included with the value true only if the pipeline has a Kubernetes cluster available for deployments. |
ci_merge_request_assignees |
str |
Comma-separated list of username(s) of assignee(s) for the merge request if the pipelines are for merge requests. |
ci_merge_request_diff_base_sha |
str |
The base SHA of the merge request diff, if the pipelines are for merge requests. |
ci_merge_request_diff_id |
str |
The version of the merge request diff, if the pipelines are for merge requests. |
ci_merge_request_event_type |
str |
The event type of the merge request, if the pipelines are for merge requests. Can be detached, merged_result or merge_train. |
ci_merge_request_id |
str |
The instance-level ID of the merge request. |
ci_merge_request_iid |
str |
The project-level IID (internal ID) of the merge request. |
ci_merge_request_labels |
str |
Comma-separated label names of the merge request if the pipelines are for merge requests. |
ci_merge_request_milestone |
str |
The milestone title of the merge request if the pipelines are for merge requests. |
ci_merge_request_project_id |
str |
The ID of the project of the merge request if the pipelines are for merge requests. |
ci_merge_request_project_path |
str |
The path of the project of the merge request if the pipelines are for merge requests (for example stage/awesome-project). |
ci_merge_request_project_url |
str |
The URL of the project of the merge request if the pipelines are for merge requests (for example http://192.168.10.15:3000/stage/awesome-project). Available only if only [merge_requests] or rules syntax is used and the merge request is created. * Added in GitLab 11.6 Available in GitLab Runner all. |
ci_merge_request_ref_path |
str |
The ref path of the merge request if the pipelines are for merge requests. |
ci_merge_request_source_branch_name |
str |
The source branch name of the merge request if the pipelines are for merge requests. |
ci_merge_request_source_branch_sha |
str |
The HEAD SHA of the source branch of the merge request if the pipelines are for merge requests. |
ci_merge_request_source_project_id |
str |
The ID of the source project of the merge request if the pipelines are for merge requests. |
ci_merge_request_source_project_path |
str |
The path of the source project of the merge request if the pipelines are for merge requests. |
ci_merge_request_source_project_url |
str |
The URL of the source project of the merge request if the pipelines are for merge requests. |
ci_merge_request_title |
str |
The title of the merge request if the pipelines are for merge requests. |
ci_node_index |
str |
Index of the job in the job set. If the job is not parallelized, this variable is not set. |
ci_open_merge_requests |
str |
Available in branch and merge request pipelines. |
ci_registry |
str |
GitLab Container Registry. This variable includes a :port value if one has been specified in the registry configuration. |
ci_registry_image |
str |
the address of the registry tied to the specific project. |
ci_registry_user |
str |
The username to use to push containers to the GitLab Container Registry, for the current project. |
ci_shared_environment |
str |
Marks that the job is executed in a shared environment (something that is persisted across CI invocations like shell or ssh executor). |
trigger_payload |
str |
This variable is available when a pipeline is triggered with a webhook. |
chat_channel
Required ¶
- Type: str
Source chat channel which triggered the ChatOps command.
Added in GitLab 10.6 Available in GitLab Runner all
chat_input
Required ¶
- Type: str
Additional arguments passed in the ChatOps command.
Added in GitLab 10.6 Available in GitLab Runner all
ci
Required ¶
- Type: str
Mark that job is executed in CI environment.
Added in GitLab all Available in GitLab Runner 0.4
ci_api_v4_url
Required ¶
- Type: str
The GitLab API v4 root URL.
Added in GitLab 11.7 Available in GitLab Runner all
ci_builds_dir
Required ¶
- Type: str
Top-level directory where builds are executed.
Added in GitLab all Available in GitLab Runner 11.10
ci_commit_before_sha
Required ¶
- Type: str
The previous latest commit present on a branch. Is always 0000000000000000000000000000000000000000 in pipelines for merge requests.
Added in GitLab 11.2 Available in GitLab Runner all
ci_commit_description
Required ¶
- Type: str
The description of the commit the message without first line, if the title is shorter than 100 characters;
full message in other case.
Added in GitLab 10.8 Available in GitLab Runner all
ci_commit_message
Required ¶
- Type: str
The full commit message.
Added in GitLab 10.8 Available in GitLab Runner all
ci_commit_ref_name
Required ¶
- Type: str
The branch or tag name for which project is built.
Added in GitLab 9.0 Available in GitLab Runner all
ci_commit_ref_protected
Required ¶
- Type: str
true if the job is running on a protected reference, false if not.
Added in GitLab 11.11 Available in GitLab Runner all
ci_commit_ref_slug
Required ¶
- Type: str
$CI_COMMIT_REF_NAME in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -.
No leading / trailing -. Use in URLs, host names and domain names.
Added in GitLab 9.0 Available in GitLab Runner all
ci_commit_sha
Required ¶
- Type: str
The commit revision for which project is built.
Added in GitLab 9.0 Available in GitLab Runner all
ci_commit_short_sha
Required ¶
- Type: str
The first eight characters of CI_COMMIT_SHA.
Added in GitLab 11.7 Available in GitLab Runner all
ci_commit_timestamp
Required ¶
- Type: str
The timestamp of the commit in the ISO 8601 format.
Added in GitLab 13.4 Available in GitLab Runner all
ci_commit_title
Required ¶
- Type: str
The title of the commit - the full first line of the message.
Added in GitLab 10.8 Available in GitLab Runner all
ci_concurrent_id
Required ¶
- Type: str
Unique ID of build execution in a single executor.
Added in GitLab all Available in GitLab Runner 11.10
ci_concurrent_project_id
Required ¶
- Type: str
Unique ID of build execution in a single executor and project.
Added in GitLab all Available in GitLab Runner 11.10
ci_config_path
Required ¶
- Type: str
The path to CI configuration file. Defaults to .gitlab-ci.yml.
Added in GitLab 9.4 Available in GitLab Runner 0.5
ci_debug_trace
Required ¶
- Type: str
Whether debug logging (tracing) is enabled.
Added in GitLab all Available in GitLab Runner 1.7
ci_default_branch
Required ¶
- Type: str
The name of the default branch for the project.
Added in GitLab 12.4 Available in GitLab Runner all
ci_dependency_proxy_group_image_prefix
Required ¶
- Type: str
The image prefix for pulling images through the Dependency Proxy.
Added in GitLab 13.7 Available in GitLab Runner all
ci_dependency_proxy_password
Required ¶
- Type: str
The password to use to pull images through the Dependency Proxy.
ATTENTION: Contrary to most other variables in this class, this variable is not resolved at rendering time. Instead the variable string is returned, which is then resolved during pipeline execution. This is because the value contains sensitive information.
Added in GitLab 13.7 Available in GitLab Runner all
ci_dependency_proxy_server
Required ¶
- Type: str
The server for logging in to the Dependency Proxy. This is equivalent to $CI_SERVER_HOST:$CI_SERVER_PORT.
Added in GitLab 13.7 Available in GitLab Runner all
ci_dependency_proxy_user
Required ¶
- Type: str
The username to use to pull images through the Dependency Proxy.
Added in GitLab 13.7 Available in GitLab Runner all
ci_deploy_password
Required ¶
- Type: str
Authentication password of the GitLab Deploy Token, only present if the Project has one related.
ATTENTION: Contrary to most other variables in this class, this variable is not resolved at rendering time. Instead the variable string is returned, which is then resolved during pipeline execution. This is because the value contains sensitive information.
Added in GitLab 10.8 Available in GitLab Runner all
ci_deploy_user
Required ¶
- Type: str
Authentication username of the GitLab Deploy Token, only present if the Project has one related.
Added in GitLab 10.8 Available in GitLab Runner all
ci_job_id
Required ¶
- Type: str
The unique ID of the current job that GitLab CI/CD uses internally.
Added in GitLab 9.0 Available in GitLab Runner all
ci_job_image
Required ¶
- Type: str
The name of the image running the CI job.
Added in GitLab 12.9 Available in GitLab Runner 12.9
ci_job_jwt
Required ¶
- Type: str
RS256 JSON web token that can be used for authenticating with third party systems that support JWT authentication, for example HashiCorp’s Vault.
ATTENTION: Contrary to most other variables in this class, this variable is not resolved at rendering time. Instead the variable string is returned, which is then resolved during pipeline execution. This is because the value contains sensitive information.
Added in GitLab 12.10 Available in GitLab Runner all
ci_job_manual
Required ¶
- Type: str
The flag to indicate that job was manually started.
Added in GitLab 8.12 Available in GitLab Runner all
ci_job_name
Required ¶
- Type: str
The name of the job as defined in .gitlab-ci.yml.
Added in GitLab 9.0 Available in GitLab Runner 0.5
ci_job_stage
Required ¶
- Type: str
The name of the stage as defined in .gitlab-ci.yml.
Added in GitLab 9.0 Available in GitLab Runner 0.5
ci_job_status
Required ¶
- Type: str
The state of the job as each runner stage is executed.
Use with after_script where CI_JOB_STATUS can be either success, failed or canceled.
Added in GitLab all Available in GitLab Runner 13.5
ci_job_token
Required ¶
- Type: str
Token used for authenticating with a few API endpoints and downloading dependent repositories.
The token is valid as long as the job is running.
ATTENTION: Contrary to most other variables in this class, this variable is not resolved at rendering time. Instead the variable string is returned, which is then resolved during pipeline execution. This is because the value contains sensitive information.
Added in GitLab 9.0 Available in GitLab Runner 1.2
ci_job_url
Required ¶
- Type: str
Job details URL.
Added in GitLab 11.1 Available in GitLab Runner 0.5
ci_merge_request_target_branch_name
Required ¶
- Type: str
The target branch name of the merge request if the pipelines are for merge requests.
Available only if only [merge_requests] or rules syntax is used and the merge request is created.
Added in GitLab 11.6 Available in GitLab Runner all
ci_merge_request_target_branch_sha
Required ¶
- Type: str
The HEAD SHA of the target branch of the merge request if the pipelines are for merge requests.
Available only if only [merge_requests] or rules syntax is used, the merge request is created, and the pipeline is a merged result pipeline.
Added in GitLab 11.9 Available in GitLab Runner all
ci_node_total
Required ¶
- Type: str
Total number of instances of this job running in parallel.
If the job is not parallelized, this variable is set to 1.
Added in GitLab 11.5 Available in GitLab Runner all
ci_pages_domain
Required ¶
- Type: str
The configured domain that hosts GitLab Pages.
Added in GitLab 11.8 Available in GitLab Runner all
ci_pages_url
Required ¶
- Type: str
URL to GitLab Pages-built pages. Always belongs to a subdomain of CI_PAGES_DOMAIN.
Added in GitLab 11.8 Available in GitLab Runner all
ci_pipeline_id
Required ¶
- Type: str
The instance-level ID of the current pipeline. This is a unique ID across all projects on GitLab.
Added in GitLab 8.10 Available in GitLab Runner all
ci_pipeline_iid
Required ¶
- Type: str
The project-level IID (internal ID) of the current pipeline. This ID is unique for the current project.
Added in GitLab 11.0 Available in GitLab Runner all
ci_pipeline_source
Required ¶
- Type: str
Indicates how the pipeline was triggered.
Possible options are push, web, schedule, api, external, chat, webide, merge_request_event, external_pull_request_event, parent_pipeline, trigger, or pipeline. For pipelines created before GitLab 9.5, this is displayed as unknown.
Added in GitLab 10.0 Available in GitLab Runner all
ci_pipeline_triggered
Required ¶
- Type: str
The flag to indicate that job was triggered.
Added in GitLab all Available in GitLab Runner all
ci_pipeline_url
Required ¶
- Type: str
Pipeline details URL.
Added in GitLab 11.1 Available in GitLab Runner 0.5
ci_project_config_path
Required ¶
- Type: str
The CI configuration path for the project.
Added in GitLab 13.8 Available in GitLab Runner all
ci_project_dir
Required ¶
- Type: str
The full path where the repository is cloned and where the job is run.
If the GitLab Runner builds_dir parameter is set, this variable is set relative to the value of builds_dir. For more information, see Advanced configuration for GitLab Runner.
Added in GitLab all Available in GitLab Runner all
ci_project_id
Required ¶
- Type: str
The unique ID of the current project that GitLab CI/CD uses internally.
Added in GitLab all Available in GitLab Runner all
ci_project_name
Required ¶
- Type: str
The name of the directory for the project that is being built.
For example, if the project URL is gitlab.example.com/group-name/project-1, the CI_PROJECT_NAME would be project-1.
Added in GitLab 8.10 Available in GitLab Runner 0.5
ci_project_namespace
Required ¶
- Type: str
The project stage (username or group name) that is being built.
Added in GitLab 8.10 Available in GitLab Runner 0.5
ci_project_path
Required ¶
- Type: str
The stage with project name.
Added in GitLab 8.10 Available in GitLab Runner 0.5
ci_project_path_slug
Required ¶
- Type: str
$CI_PROJECT_PATH in lowercase and with everything except 0-9 and a-z replaced with -. Use in URLs and domain names.
Added in GitLab 9.3 Available in GitLab Runner all
ci_project_repository_languages
Required ¶
- Type: str
Comma-separated, lowercase list of the languages used in the repository (for example ruby,javascript,html,css).
Added in GitLab 12.3 Available in GitLab Runner all
ci_project_root_namespace
Required ¶
- Type: str
The root project stage (username or group name) that is being built.
For example, if CI_PROJECT_NAMESPACE is root-group/child-group/grandchild-group, CI_PROJECT_ROOT_NAMESPACE would be root-group.
Added in GitLab 13.2 Available in GitLab Runner 0.5
ci_project_title
Required ¶
- Type: str
The human-readable project name as displayed in the GitLab web interface.
Added in GitLab 12.4 Available in GitLab Runner all
ci_project_url
Required ¶
- Type: str
The HTTP(S) address to access project.
Added in GitLab 8.10 Available in GitLab Runner 0.5
ci_project_visibility
Required ¶
- Type: str
The project visibility (internal, private, public).
Added in GitLab 10.3 Available in GitLab Runner all
ci_registry_password
Required ¶
- Type: str
The password to use to push containers to the GitLab Container Registry, for the current project.
ATTENTION: Contrary to most other variables in this class, this variable is not resolved at rendering time. Instead the variable string is returned, which is then resolved during pipeline execution. This is because the value contains sensitive information.
Added in GitLab 9.0 Available in GitLab Runner all
ci_repository_url
Required ¶
- Type: str
The URL to clone the Git repository.
ATTENTION: Contrary to most other variables in this class, this variable is not resolved at rendering time. Instead the variable string is returned, which is then resolved during pipeline execution. This is because the value contains sensitive information.
Added in GitLab 9.0 Available in GitLab Runner all
ci_runner_description
Required ¶
- Type: str
The description of the runner as saved in GitLab.
Added in GitLab 8.10 Available in GitLab Runner 0.5
ci_runner_executable_arch
Required ¶
- Type: str
The OS/architecture of the GitLab Runner executable (note that this is not necessarily the same as the environment of the executor).
Added in GitLab all Available in GitLab Runner 10.6
ci_runner_id
Required ¶
- Type: str
The unique ID of runner being used.
Added in GitLab 8.10 Available in GitLab Runner 0.5
ci_runner_revision
Required ¶
- Type: str
GitLab Runner revision that is executing the current job.
Added in GitLab all Available in GitLab Runner 10.6
ci_runner_short_token
Required ¶
- Type: str
First eight characters of the runner’s token used to authenticate new job requests. Used as the runner’s unique ID.
ATTENTION: Contrary to most other variables in this class, this variable is not resolved at rendering time. Instead the variable string is returned, which is then resolved during pipeline execution. This is because the value contains sensitive information.
Added in GitLab all Available in GitLab Runner 12.3
ci_runner_tags
Required ¶
- Type: str
The defined runner tags.
Added in GitLab 8.10 Available in GitLab Runner 0.5
ci_runner_version
Required ¶
- Type: str
GitLab Runner version that is executing the current job.
Added in GitLab all Available in GitLab Runner 10.6
ci_server
Required ¶
- Type: str
Mark that job is executed in CI environment.
Added in GitLab all Available in GitLab Runner all
ci_server_host
Required ¶
- Type: str
Host component of the GitLab instance URL, without protocol and port (like gitlab.example.com).
Added in GitLab 12.1 Available in GitLab Runner all
ci_server_name
Required ¶
- Type: str
The name of CI server that is used to coordinate jobs.
Added in GitLab all Available in GitLab Runner all
ci_server_port
Required ¶
- Type: str
Port component of the GitLab instance URL, without host and protocol (like 3000).
Added in GitLab 12.8 Available in GitLab Runner all
ci_server_protocol
Required ¶
- Type: str
Protocol component of the GitLab instance URL, without host and port (like https).
Added in GitLab 12.8 Available in GitLab Runner all
ci_server_revision
Required ¶
- Type: str
GitLab revision that is used to schedule jobs.
Added in GitLab all Available in GitLab Runner all
ci_server_url
Required ¶
- Type: str
The base URL of the GitLab instance, including protocol and port (like https://gitlab.example.com:8080).
Added in GitLab 12.7 Available in GitLab Runner all
ci_server_version
Required ¶
- Type: str
GitLab version that is used to schedule jobs.
Added in GitLab all Available in GitLab Runner all
ci_server_version_major
Required ¶
- Type: str
GitLab version major component.
Added in GitLab 11.4 Available in GitLab Runner all
ci_server_version_minor
Required ¶
- Type: str
GitLab version minor component.
Added in GitLab 11.4 Available in GitLab Runner all
ci_server_version_patch
Required ¶
- Type: str
GitLab version patch component.
Added in GitLab 11.4 Available in GitLab Runner all
gitlab_ci
Required ¶
- Type: str
Mark that job is executed in GitLab CI/CD environment.
Added in GitLab all Available in GitLab Runner all
gitlab_features
Required ¶
- Type: str
The comma separated list of licensed features available for your instance and plan.
Added in GitLab 10.6 Available in GitLab Runner all
gitlab_user_email
Required ¶
- Type: str
The email of the user who started the job.
Added in GitLab 8.12 Available in GitLab Runner all
gitlab_user_id
Required ¶
- Type: str
The ID of the user who started the job.
Added in GitLab 8.12 Available in GitLab Runner all
gitlab_user_login
Required ¶
- Type: str
The login username of the user who started the job.
Added in GitLab 10.0 Available in GitLab Runner all
gitlab_user_name
Required ¶
- Type: str
The real name of the user who started the job.
Added in GitLab 10.0 Available in GitLab Runner all
ci_commit_branch
Optional ¶
- Type: str
The commit branch name.
Present in branch pipelines, including pipelines for the default branch. Not present in merge request pipelines or tag pipelines.
Added in GitLab 12.6 Available in GitLab Runner 0.5
ci_commit_tag
Optional ¶
- Type: str
The commit tag name. Present only when building tags.
Added in GitLab 9.0 Available in GitLab Runner 0.5
ci_deploy_freeze
Optional ¶
- Type: str
Included with the value true if the pipeline runs during a deploy freeze window.
Added in GitLab 13.2 Available in GitLab Runner all
ci_disposable_environment
Optional ¶
- Type: str
Marks that the job is executed in a disposable environment (something that is created only for this job and disposed of/destroyed after the execution - all executors except shell and ssh).
If the environment is disposable, it is set to true, otherwise it is not defined at all.
Added in GitLab all Available in GitLab Runner 10.1
ci_environment_name
Optional ¶
- Type: str
The name of the environment for this job. Only present if environment:name is set.
Added in GitLab 8.15 Available in GitLab Runner all
ci_environment_slug
Optional ¶
- Type: str
A simplified version of the environment name, suitable for inclusion in DNS, URLs, Kubernetes labels, and so on.
Only present if environment:name is set.
Added in GitLab 8.15 Available in GitLab Runner all
ci_environment_url
Optional ¶
- Type: str
The URL of the environment for this job. Only present if environment:url is set.
Added in GitLab 9.3 Available in GitLab Runner all
ci_external_pull_request_iid
Optional ¶
- Type: str
Pull Request ID from GitHub if the pipelines are for external pull requests.
Available only if only [external_pull_requests] or rules syntax is used and the pull request is open.
Added in GitLab 12.3 Available in GitLab Runner all
ci_external_pull_request_source_branch_name
Optional ¶
- Type: str
The source branch name of the pull request if the pipelines are for external pull requests.
Available only if only [external_pull_requests] or rules syntax is used and the pull request is open.
Added in GitLab 12.3 Available in GitLab Runner all
ci_external_pull_request_source_branch_sha
Optional ¶
- Type: str
The HEAD SHA of the source branch of the pull request if the pipelines are for external pull requests.
Available only if only [external_pull_requests] or rules syntax is used and the pull request is open.
Added in GitLab 12.3 Available in GitLab Runner all
ci_external_pull_request_source_repository
Optional ¶
- Type: str
The source repository name of the pull request if the pipelines are for external pull requests.
Available only if only [external_pull_requests] or rules syntax is used and the pull request is open.
Added in GitLab 13.3 Available in GitLab Runner all
ci_external_pull_request_target_branch_name
Optional ¶
- Type: str
The target branch name of the pull request if the pipelines are for external pull requests.
Available only if only [external_pull_requests] or rules syntax is used and the pull request is open. * Added in GitLab 12.3 Available in GitLab Runner all
ci_external_pull_request_target_branch_sha
Optional ¶
- Type: str
The HEAD SHA of the target branch of the pull request if the pipelines are for external pull requests.
Available only if only [external_pull_requests] or rules syntax is used and the pull request is open.
Added in GitLab 12.3 Available in GitLab Runner all
ci_external_pull_request_target_repository
Optional ¶
- Type: str
The target repository name of the pull request if the pipelines are for external pull requests.
Available only if only [external_pull_requests] or rules syntax is used and the pull request is open.
Added in GitLab 13.3 Available in GitLab Runner all
ci_has_open_requirements
Optional ¶
- Type: str
Included with the value true only if the pipeline’s project has any open requirements.
Not included if there are no open requirements for the pipeline’s project.
Added in GitLab 13.1 Available in GitLab Runner all
ci_kubernetes_active
Optional ¶
- Type: str
Included with the value true only if the pipeline has a Kubernetes cluster available for deployments.
Not included if no cluster is available. Can be used as an alternative to only:kubernetes/except:kubernetes with rules:if.
Added in GitLab 13.0 Available in GitLab Runner all
ci_merge_request_assignees
Optional ¶
- Type: str
Comma-separated list of username(s) of assignee(s) for the merge request if the pipelines are for merge requests.
Available only if only [merge_requests] or rules syntax is used and the merge request is created.
Added in GitLab 11.9 Available in GitLab Runner all
ci_merge_request_diff_base_sha
Optional ¶
- Type: str
The base SHA of the merge request diff, if the pipelines are for merge requests.
Added in GitLab 13.7 Available in GitLab Runner all
ci_merge_request_diff_id
Optional ¶
- Type: str
The version of the merge request diff, if the pipelines are for merge requests.
Added in GitLab 13.7 Available in GitLab Runner all
ci_merge_request_event_type
Optional ¶
- Type: str
The event type of the merge request, if the pipelines are for merge requests. Can be detached, merged_result or merge_train.
Added in GitLab 12.3 Available in GitLab Runner all
ci_merge_request_id
Optional ¶
- Type: str
The instance-level ID of the merge request.
Only available if the pipelines are for merge requests and the merge request is created. This is a unique ID across all projects on GitLab.
Added in GitLab 11.6 Available in GitLab Runner all
ci_merge_request_iid
Optional ¶
- Type: str
The project-level IID (internal ID) of the merge request.
Only available If the pipelines are for merge requests and the merge request is created. This ID is unique for the current project.
Added in GitLab 11.6 Available in GitLab Runner all
ci_merge_request_labels
Optional ¶
- Type: str
Comma-separated label names of the merge request if the pipelines are for merge requests.
Available only if only [merge_requests] or rules syntax is used and the merge request is created.
Added in GitLab 11.9 Available in GitLab Runner all
ci_merge_request_milestone
Optional ¶
- Type: str
The milestone title of the merge request if the pipelines are for merge requests.
Available only if only [merge_requests] or rules syntax is used and the merge request is created.
Added in GitLab 11.9 Available in GitLab Runner all
ci_merge_request_project_id
Optional ¶
- Type: str
The ID of the project of the merge request if the pipelines are for merge requests.
Available only if only [merge_requests] or rules syntax is used and the merge request is created.
Added in GitLab 11.6 Available in GitLab Runner all
ci_merge_request_project_path
Optional ¶
- Type: str
The path of the project of the merge request if the pipelines are for merge requests (for example stage/awesome-project).
Available only if only [merge_requests] or rules syntax is used and the merge request is created.
Added in GitLab 11.6 Available in GitLab Runner all
ci_merge_request_project_url
Optional ¶
- Type: str
The URL of the project of the merge request if the pipelines are for merge requests (for example http://192.168.10.15:3000/stage/awesome-project). Available only if only [merge_requests] or rules syntax is used and the merge request is created. * Added in GitLab 11.6 Available in GitLab Runner all.
ci_merge_request_ref_path
Optional ¶
- Type: str
The ref path of the merge request if the pipelines are for merge requests.
(for example refs/merge-requests/1/head). Available only if only [merge_requests] or rules syntax is used and the merge request is created.
Added in GitLab 11.6 Available in GitLab Runner all
ci_merge_request_source_branch_name
Optional ¶
- Type: str
The source branch name of the merge request if the pipelines are for merge requests.
Available only if only [merge_requests] or rules syntax is used and the merge request is created.
Added in GitLab 11.6 Available in GitLab Runner all
ci_merge_request_source_branch_sha
Optional ¶
- Type: str
The HEAD SHA of the source branch of the merge request if the pipelines are for merge requests.
Available only if only [merge_requests] or rules syntax is used, the merge request is created, and the pipeline is a merged result pipeline.
Added in GitLab 11.9 Available in GitLab Runner all
ci_merge_request_source_project_id
Optional ¶
- Type: str
The ID of the source project of the merge request if the pipelines are for merge requests.
Available only if only [merge_requests] or rules syntax is used and the merge request is created.
Added in GitLab 11.6 Available in GitLab Runner all
ci_merge_request_source_project_path
Optional ¶
- Type: str
The path of the source project of the merge request if the pipelines are for merge requests.
Available only if only [merge_requests] or rules syntax is used and the merge request is created.
Added in GitLab 11.6 Available in GitLab Runner all
ci_merge_request_source_project_url
Optional ¶
- Type: str
The URL of the source project of the merge request if the pipelines are for merge requests.
Available only if only [merge_requests] or rules syntax is used and the merge request is created.
Added in GitLab 11.6 Available in GitLab Runner all
ci_merge_request_title
Optional ¶
- Type: str
The title of the merge request if the pipelines are for merge requests.
Available only if only [merge_requests] or rules syntax is used and the merge request is created.
Added in GitLab 11.9 Available in GitLab Runner all
ci_node_index
Optional ¶
- Type: str
Index of the job in the job set. If the job is not parallelized, this variable is not set.
Added in GitLab 11.5 Available in GitLab Runner all
ci_open_merge_requests
Optional ¶
- Type: str
Available in branch and merge request pipelines.
Contains a comma-separated list of up to four merge requests that use the current branch and project as the merge request source. For example gitlab-org/gitlab!333,gitlab-org/gitlab-foss!11.
Added in GitLab 13.8 Available in GitLab Runner all
ci_registry
Optional ¶
- Type: str
GitLab Container Registry. This variable includes a :port value if one has been specified in the registry configuration.
Added in GitLab 8.10 Available in GitLab Runner 0.5
ci_registry_image
Optional ¶
- Type: str
the address of the registry tied to the specific project.
Added in GitLab 8.10 Available in GitLab Runner 0.5
ci_registry_user
Optional ¶
- Type: str
The username to use to push containers to the GitLab Container Registry, for the current project.
Added in GitLab 9.0 Available in GitLab Runner all
ci_shared_environment
Optional ¶
- Type: str
Marks that the job is executed in a shared environment (something that is persisted across CI invocations like shell or ssh executor).
If the environment is shared, it is set to true, otherwise it is not defined at all.
Added in GitLab all Available in GitLab Runner 10.1
trigger_payload
Optional ¶
- Type: str
This variable is available when a pipeline is triggered with a webhook.
Added in GitLab 13.9 Available in GitLab Runner all
Rule ¶
- Implements: IRule
Initializers ¶
Name | Type | Description |
---|---|---|
allow_failure |
bool |
No description. |
changes |
typing.List[str] |
No description. |
exists |
typing.List[str] |
No description. |
if_statement |
str |
No description. |
variables |
typing.Mapping[str] |
No description. |
when |
WhenStatement |
No description. |
allow_failure
Optional ¶
- Type: bool
- Default: false
changes
Optional ¶
- Type: typing.List[str]
exists
Optional ¶
- Type: typing.List[str]
if_statement
Optional ¶
- Type: str
variables
Optional ¶
- Type: typing.Mapping[str]
when
Optional ¶
- Type: WhenStatement
- Default: WhenStatement.ON_SUCCESS.
Methods ¶
Name | Description |
---|---|
add_variables |
Adds one or more variables, each as keyword argument, to the rule. |
is_equal |
isEqual checks if this object is equal to given object. |
never |
This method is intended to be used for predefined rules. |
render |
Returns a representation of any object which implements IBase . |
add_variables
¶
Adds one or more variables, each as keyword argument, to the rule.
variables
Required ¶
- Type: typing.Mapping[str]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
never
¶
This method is intended to be used for predefined rules.
For instance you have defined an
often used rule on_master
whose if statement checks if the pipeline is executed on branch
master
. Then you can either run a job, if on master...
... or do not run a job if on master...
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 |
---|---|---|
variables |
typing.Mapping[str] |
No description. |
allow_failure |
bool |
No description. |
changes |
typing.List[str] |
No description. |
exists |
typing.List[str] |
No description. |
if_statement |
str |
No description. |
when |
WhenStatement |
No description. |
variables
Required ¶
- Type: typing.Mapping[str]
allow_failure
Optional ¶
- Type: bool
changes
Optional ¶
- Type: typing.List[str]
exists
Optional ¶
- Type: typing.List[str]
if_statement
Optional ¶
- Type: str
when
Optional ¶
- Type: WhenStatement
RuleLib ¶
Represents a library of static methods to create rules for GitLab CI/CD pipeline conditions.
Static Functions ¶
Name | Description |
---|---|
not_on_branch |
Creates a rule that evaluates to true if the CI/CD pipeline is NOT running on the specified branch. |
not_on_main |
Creates a rule that evaluates to true if the CI/CD pipeline is NOT running on the "main" branch. |
not_on_master |
Creates a rule that evaluates to true if the CI/CD pipeline is NOT running on the "master" branch. |
on_branch |
Creates a rule that evaluates to true if the CI/CD pipeline is running on the specified branch. |
on_main |
Creates a rule that evaluates to true if the CI/CD pipeline is running on the "main" branch. |
on_master |
Creates a rule that evaluates to true if the CI/CD pipeline is running on the "master" branch. |
on_merge_request_events |
Creates a rule that evaluates to true for merge request events in the CI/CD pipeline. |
on_pipeline_trigger |
Creates a rule that evaluates to true for pipelines triggered by API or the trigger keyword. |
on_success |
Creates a rule that always evaluates to true (success). |
on_tags |
Creates a rule that evaluates to true for CI/CD pipelines triggered by tags. |
not_on_branch
¶
Creates a rule that evaluates to true if the CI/CD pipeline is NOT running on the specified branch.
branch_name
Required ¶
- Type: str
The name of the branch to check.
not_on_main
¶
Creates a rule that evaluates to true if the CI/CD pipeline is NOT running on the "main" branch.
not_on_master
¶
Creates a rule that evaluates to true if the CI/CD pipeline is NOT running on the "master" branch.
on_branch
¶
Creates a rule that evaluates to true if the CI/CD pipeline is running on the specified branch.
branch_name
Required ¶
- Type: str
The name of the branch to check.
on_main
¶
Creates a rule that evaluates to true if the CI/CD pipeline is running on the "main" branch.
on_master
¶
Creates a rule that evaluates to true if the CI/CD pipeline is running on the "master" branch.
on_merge_request_events
¶
Creates a rule that evaluates to true for merge request events in the CI/CD pipeline.
on_pipeline_trigger
¶
Creates a rule that evaluates to true for pipelines triggered by API or the trigger keyword.
on_success
¶
Creates a rule that always evaluates to true (success).
on_tags
¶
Creates a rule that evaluates to true for CI/CD pipelines triggered by tags.
Service ¶
- Implements: IService
Initializers ¶
Name | Type | Description |
---|---|---|
name |
str |
No description. |
name
Required ¶
- Type: str
Methods ¶
Name | Description |
---|---|
is_equal |
isEqual checks if this object is equal to given object. |
render |
Returns a representation of any object which implements IBase . |
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
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 |
---|---|---|
name |
str |
No description. |
name
Required ¶
- Type: str
TriggerJob ¶
- Implements: ITriggerJob
This class represents the trigger job.
Jobs with trigger can only use a
limited set of keywords.
For example, you can’t run commands with script
.
Simple example:
Initializers ¶
Name | Type | Description |
---|---|---|
branch |
str |
No description. |
includes |
typing.List[typing.Union[IncludeLocal, IncludeFile, IncludeRemote, IncludeTemplate, IncludeArtifact]] |
No description. |
name |
str |
No description. |
project |
str |
No description. |
stage |
str |
No description. |
strategy |
str |
No description. |
branch
Optional ¶
- Type: str
includes
Optional ¶
- Type: typing.List[typing.Union[IncludeLocal, IncludeFile, IncludeRemote, IncludeTemplate, IncludeArtifact]]
name
Optional ¶
- Type: str
project
Optional ¶
- Type: str
stage
Optional ¶
- Type: str
strategy
Optional ¶
- Type: str
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
add_parent
¶
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: typing.Union[Job, JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: Artifacts
assign_cache
¶
cache
Required ¶
- Type: Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
assign_image
¶
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: typing.Union[str, Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
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: typing.Union[Job, JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
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 |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[Job, JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
Artifacts |
No description. |
cache |
Cache |
No description. |
dependencies |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
image |
Image |
No description. |
needs |
typing.List[typing.Union[Job, JobCollection, Need]] |
No description. |
original |
Job |
No description. |
rules |
typing.List[Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
branch |
str |
The branch of project the pipeline should be triggered of. |
includes |
typing.List[typing.Union[IncludeLocal, IncludeFile, IncludeRemote, IncludeTemplate, IncludeArtifact]] |
Include a pipeline to trigger (Parent-child pipeline trigger) Mutually exclusiv with project . |
project |
str |
The full name of another Gitlab project to trigger (multi-project pipeline trigger). |
strategy |
str |
Determines if the result of this pipeline depends on the triggered downstream pipeline (use TriggerStrategy.DEPEND ) or if just "fire and forget" the downstream pipeline (use None ). |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: Artifacts
cache
Optional ¶
- Type: Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
image
Optional ¶
- Type: Image
needs
Optional ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
original
Optional ¶
- Type: Job
rules
Optional ¶
- Type: typing.List[Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
branch
Optional ¶
- Type: str
The branch of project
the pipeline should be triggered of.
includes
Optional ¶
- Type: typing.List[typing.Union[IncludeLocal, IncludeFile, IncludeRemote, IncludeTemplate, IncludeArtifact]]
Include a pipeline to trigger (Parent-child pipeline trigger) Mutually exclusiv with project
.
project
Optional ¶
- Type: str
The full name of another Gitlab project to trigger (multi-project pipeline trigger).
Mutually exclusive with includes
.
strategy
Optional ¶
- Type: str
Determines if the result of this pipeline depends on the triggered downstream pipeline (use TriggerStrategy.DEPEND
) or if just "fire and forget" the downstream pipeline (use None
).
Protocols ¶
IArtifacts ¶
-
Extends: IBase
-
Implemented By: Artifacts, IArtifacts
Methods ¶
Name | Description |
---|---|
add_excludes |
No description. |
add_paths |
No description. |
add_excludes
¶
excludes
Required ¶
- Type: typing.List[str]
add_paths
¶
paths
Required ¶
- Type: typing.List[str]
Properties ¶
Name | Type | Description |
---|---|---|
excludes |
typing.List[str] |
No description. |
paths |
typing.List[str] |
No description. |
expire_in |
str |
No description. |
expose_as |
str |
No description. |
name |
str |
No description. |
public |
bool |
No description. |
reports |
typing.List[ArtifactsReport] |
No description. |
untracked |
bool |
No description. |
when |
WhenStatement |
No description. |
excludes
Required ¶
- Type: typing.List[str]
paths
Required ¶
- Type: typing.List[str]
expire_in
Optional ¶
- Type: str
expose_as
Optional ¶
- Type: str
name
Optional ¶
- Type: str
public
Optional ¶
- Type: bool
reports
Optional ¶
- Type: typing.List[ArtifactsReport]
untracked
Optional ¶
- Type: bool
when
Optional ¶
- Type: WhenStatement
IBase ¶
- Implemented By: gcix.aws.CdkBootstrap, gcix.aws.CdkDeploy, gcix.aws.CdkDiff, gcix.aws.CdkDiffDeploy, gcix.aws.CdkMirrorToCodecommit, gcix.container.BuildContainerCollection, gcix.container.BuildGitlabContainerCollection, gcix.container.CopyContainerCollection, gcix.container.CraneCopy, gcix.container.CranePull, gcix.container.CranePush, gcix.container.DiveScan, gcix.container.DockerBuild, gcix.container.DockerPush, gcix.container.KanikoExecute, gcix.container.TrivyIgnoreFileCheck, gcix.container.TrivyScanLocalImage, gcix.git.GitMirror, gcix.gitlab.PagesAsciiDoctor, gcix.python.PagesPdoc3, gcix.python.PagesSphinx, gcix.python.PythonBuildBdistWheel, gcix.python.PythonDeployTwineUpload, gcix.python.PythonFullStack, gcix.python.PythonLintFlake8, gcix.python.PythonLintIsort, gcix.python.PythonLintMyPy, gcix.python.PythonTestEvaluateGitTagPep440Conformity, gcix.python.PythonTestPytest, Artifacts, Cache, CacheKey, Image, Include, IncludeArtifact, IncludeFile, IncludeLocal, IncludeRemote, IncludeTemplate, Job, JobCollection, Need, PagesJob, Pipeline, Rule, Service, TriggerJob, IArtifacts, IBase, ICache, ICacheKey, IInclude, IIncludeArtifact, IIncludeFile, IIncludeLocal, IIncludeRemote, IIncludeTemplate, IJob, IJobBase, IJobCollection, IJobCollectionBase, INeed, IRule, IService
Methods ¶
Name | Description |
---|---|
is_equal |
isEqual checks if this object is equal to given object. |
render |
Returns a representation of any object which implements IBase . |
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: IBase
An arbitrary object to compare to.
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.
ICache ¶
ICacheKey ¶
IImage ¶
Methods ¶
Name | Description |
---|---|
with_entrypoint |
No description. |
with_tag |
No description. |
with_entrypoint
¶
entrypoint
Required ¶
- Type: typing.List[str]
with_tag
¶
tag
Required ¶
- Type: str
IInclude ¶
-
Extends: IBase
-
Implemented By: Include, IncludeArtifact, IncludeFile, IncludeLocal, IncludeRemote, IncludeTemplate, IInclude, IIncludeArtifact, IIncludeFile, IIncludeLocal, IIncludeRemote, IIncludeTemplate
This module represents the Gitlab CI Include keyword.
Use include to include external YAML files in your CI/CD configuration.
include:local example:
include:file example:
include:remote example:
include:template example:
Special type of include: Use a gcix.TriggerJob
with IncludeArtifact
to run a child pipeline with a generated configuration file from a previous job:
IIncludeArtifact ¶
-
Extends: IInclude
-
Implemented By: IncludeArtifact, IIncludeArtifact
IIncludeFile ¶
-
Extends: IInclude
-
Implemented By: IncludeFile, IIncludeFile
IIncludeLocal ¶
-
Extends: IInclude
-
Implemented By: IncludeLocal, IIncludeLocal
IIncludeRemote ¶
-
Extends: IInclude
-
Implemented By: IncludeRemote, IIncludeRemote
IIncludeTemplate ¶
-
Extends: IInclude
-
Implemented By: IncludeTemplate, IIncludeTemplate
IJob ¶
-
Extends: IJobBase
-
Implemented By: gcix.aws.CdkBootstrap, gcix.aws.CdkDeploy, gcix.aws.CdkDiff, gcix.aws.CdkMirrorToCodecommit, gcix.container.CraneCopy, gcix.container.CranePull, gcix.container.CranePush, gcix.container.DiveScan, gcix.container.DockerBuild, gcix.container.DockerPush, gcix.container.KanikoExecute, gcix.container.TrivyIgnoreFileCheck, gcix.container.TrivyScanLocalImage, gcix.git.GitMirror, gcix.gitlab.PagesAsciiDoctor, gcix.python.PagesPdoc3, gcix.python.PagesSphinx, gcix.python.PythonBuildBdistWheel, gcix.python.PythonDeployTwineUpload, gcix.python.PythonLintFlake8, gcix.python.PythonLintIsort, gcix.python.PythonLintMyPy, gcix.python.PythonTestEvaluateGitTagPep440Conformity, gcix.python.PythonTestPytest, Job, PagesJob, TriggerJob, IJob
Methods ¶
Name | Description |
---|---|
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
assign_allow_failure |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
add_parent
¶
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: typing.Union[Job, JobCollection]
any type of Job or JobCollection.
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
assign_image
¶
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: typing.Union[str, Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
to append to the current name.
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
name to extend the stage and the name.
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
name to extend the stage.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
typing.List[str] |
Getter method to receive added tags. |
original |
Job |
No description. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
original
Optional ¶
- Type: Job
IJobBase ¶
-
Extends: IBase
-
Implemented By: gcix.aws.CdkBootstrap, gcix.aws.CdkDeploy, gcix.aws.CdkDiff, gcix.aws.CdkMirrorToCodecommit, gcix.container.CraneCopy, gcix.container.CranePull, gcix.container.CranePush, gcix.container.DiveScan, gcix.container.DockerBuild, gcix.container.DockerPush, gcix.container.KanikoExecute, gcix.container.TrivyIgnoreFileCheck, gcix.container.TrivyScanLocalImage, gcix.git.GitMirror, gcix.gitlab.PagesAsciiDoctor, gcix.python.PagesPdoc3, gcix.python.PagesSphinx, gcix.python.PythonBuildBdistWheel, gcix.python.PythonDeployTwineUpload, gcix.python.PythonLintFlake8, gcix.python.PythonLintIsort, gcix.python.PythonLintMyPy, gcix.python.PythonTestEvaluateGitTagPep440Conformity, gcix.python.PythonTestPytest, Job, PagesJob, TriggerJob, IJob, IJobBase
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
get_all_instance_names |
Return all instance names from the given child. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[Job, JobCollection, Need]]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_artifacts
¶
artifacts
Required ¶
- Type: Artifacts
assign_cache
¶
cache
Required ¶
- Type: Cache