gitlab
Submodule ¶
Structs ¶
PagesAsciiDoctorProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
outFile |
string |
Output HTML file. |
source |
string |
Source .adoc files to translate to HTML files. |
jobName |
string |
The name of the job. |
jobStage |
string |
The stage of the job. |
outFile
Required ¶
- Type: string
Output HTML file.
source
Required ¶
- Type: string
Source .adoc files to translate to HTML files.
jobName
Optional ¶
- Type: string
The name of the job.
jobStage
Optional ¶
- Type: string
The stage of the job.
Classes ¶
GitlabScripts ¶
GitlabScripts Class Documentation.
The GitlabScripts
class provides utility methods for performing various Git-related actions in the context of GitLab.
Static Functions ¶
Name | Description |
---|---|
cloneRepository |
Clones a repository from a remote Git server using the Git command. |
cloneRepository
¶
Clones a repository from a remote Git server using the Git command.
path
Required ¶
- Type: string
The path of the repository to clone.
Should start with a forward slash ("/").
branch
Optional ¶
- Type: string
(Optional) The branch name to clone from the remote repository.
Currently, only "main" is supported.
PagesAsciiDoctor ¶
- Implements: IPagesAsciiDoctor
Translate the AsciiDoc source FILE as Gitlab Pages HTML5 file.
Runs asciidoctor {source} -o public{out_file}
and stores the output
as artifact under the public
directory.
This subclass of Job
will configure following defaults for the superclass:
- name: asciidoctor-pages
- stage: build
- image: ruby:3-alpine
- artifacts: Path 'public'
Initializers ¶
Name | Type | Description |
---|---|---|
props |
PagesAsciiDoctorProps |
No description. |
props
Required ¶
- Type: PagesAsciiDoctorProps
Methods ¶
Name | Description |
---|---|
addDependencies |
No description. |
addNeeds |
No description. |
addParent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
addTags |
No description. |
addVariables |
No description. |
appendRules |
No description. |
appendScripts |
No description. |
assignAllowFailure |
No description. |
assignArtifacts |
No description. |
assignCache |
No description. |
assignDependencies |
No description. |
assignImage |
Sets the image of this job. |
assignNeeds |
No description. |
assignTags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extendName |
This method is used by gcix.JobCollection s to populate the jobs name. |
extendStage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extendStageValue |
This method is used by gcix.JobCollection s to populate the jobs stage. |
getAllInstanceNames |
Return all instance names from the given child. |
isEqual |
isEqual checks if this object is equal to given object. |
prependRules |
No description. |
prependScripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
addDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
addParent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
addTags
¶
tags
Required ¶
- Type: string[]
addVariables
¶
variables
Required ¶
- Type: {[ key: string ]: string}
appendRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
appendScripts
¶
scripts
Required ¶
- Type: string[]
assignAllowFailure
¶
allowFailure
Required ¶
- Type: boolean | number[]
assignArtifacts
¶
artifacts
Required ¶
- Type: @gcix/gcix.Artifacts
assignCache
¶
cache
Required ¶
- Type: @gcix/gcix.Cache
assignDependencies
¶
dependencies
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignImage
¶
Sets the image of this job.
For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.
!! Any previous values will be overwritten.
image
Required ¶
- Type: string | @gcix/gcix.Image
assignNeeds
¶
needs
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
assignTags
¶
tags
Required ¶
- Type: string[]
copy
¶
Returns an independent, deep copy object of this job.
extendName
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: string
extendStage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: string
extendStageValue
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: string
getAllInstanceNames
¶
Return all instance names from the given child.
That means all combinations of the childs name and stage within this sequence and all parent sequences.
child
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection
isEqual
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: @gcix/gcix.IBase
prependRules
¶
rules
Required ¶
- Type: @gcix/gcix.Rule[]
prependScripts
¶
scripts
Required ¶
- Type: string[]
render
¶
Returns a representation of any object which implements IBase
.
The rendered representation is used by the gcix
to dump it
in YAML format as part of the .gitlab-ci.yml
pipeline.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
string[] |
Getter method to receive added tags. |
allowFailure |
string | boolean | number[] |
No description. |
name |
string |
No description. |
orderedTags |
@gcix/gcix.OrderedStringSet |
No description. |
parents |
@gcix/gcix.Job | @gcix/gcix.JobCollection[] |
No description. |
scripts |
string[] |
No description. |
stage |
string |
No description. |
artifacts |
@gcix/gcix.Artifacts |
No description. |
cache |
@gcix/gcix.Cache |
No description. |
dependencies |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
image |
@gcix/gcix.Image |
No description. |
needs |
@gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] |
No description. |
original |
@gcix/gcix.Job |
No description. |
rules |
@gcix/gcix.Rule[] |
No description. |
variables |
{[ key: string ]: string} |
No description. |
outFile |
string |
Output HTML file. |
source |
string |
Source .adoc files to translate to HTML files. |
tags
Required ¶
- Type: string[]
Getter method to receive added tags.
allowFailure
Required ¶
- Type: string | boolean | number[]
name
Required ¶
- Type: string
orderedTags
Required ¶
- Type: @gcix/gcix.OrderedStringSet
parents
Required ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]
scripts
Required ¶
- Type: string[]
stage
Required ¶
- Type: string
artifacts
Optional ¶
- Type: @gcix/gcix.Artifacts
cache
Optional ¶
- Type: @gcix/gcix.Cache
dependencies
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
image
Optional ¶
- Type: @gcix/gcix.Image
needs
Optional ¶
- Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]
original
Optional ¶
- Type: @gcix/gcix.Job
rules
Optional ¶
- Type: @gcix/gcix.Rule[]
variables
Optional ¶
- Type: {[ key: string ]: string}
outFile
Required ¶
- Type: string
Output HTML file.
source
Required ¶
- Type: string
Source .adoc files to translate to HTML files.
Protocols ¶
IPagesAsciiDoctor ¶
- Implemented By: PagesAsciiDoctor, IPagesAsciiDoctor
Properties ¶
Name | Type | Description |
---|---|---|
outFile |
string |
Output HTML file. |
source |
string |
Source .adoc files to translate to HTML files. |
outFile
Required ¶
- Type: string
Output HTML file.
source
Required ¶
- Type: string
Source .adoc files to translate to HTML files.