Job

TODO

Job API

class gitlab_runner_api.Job
classmethod load(filename)

Serialise this job as a file which can be loaded with Job.load.

filename : str
Path to file that represents the job to initialise.

Job

classmethod loads(data)

Serialise this job as a file which can be loaded with Job.load.

data : str
String representing the job to initialise

Job

dump(filename)

Serialise this job as a file which can be loaded with Job.load.

filename : str
Registration token
dumps()

Serialise this job as a string which can be loaded with with Job.loads.

str
String representation of the job that can be loaded with Job.loads
set_success(artifacts=None)
set_failed(failure_reason=None, artifacts=None)

Job properties

class gitlab_runner_api.Job
after_script
auth()
commit_message
commit_sha
get_registry_credential(image_name)
id
is_branch
job_url
log
name
pipeline_id
pipeline_url
project_name
project_path
project_url
ref
repo_url
script
stage
state
token
username
variables