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.
- filename :
-
classmethod
loads
(data)¶ Serialise this job as a file which can be loaded with Job.load.
- data :
str
- String representing the job to initialise
- data :
-
dump
(filename)¶ Serialise this job as a file which can be loaded with Job.load.
- filename :
str
- Registration token
- filename :
-
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)¶
-
classmethod