JenkinsRunner (autotransform.runner.jenkins)¶
The implementation for the JenkinsRunner.
- class autotransform.runner.jenkins.JenkinsAPIRunner(*, job_name: str)¶
Bases:
Runner
A Runner component that uses Jenkins API requests for remote runs.
- job_name¶
The name of the Jenkins job.
- Type:
str
- name¶
The name of the component.
- Type:
ClassVar[RunnerName]
- job_name: str¶
- name: ClassVar[RunnerName] = 'jenkins_api'¶
- run(schema: AutoTransformSchema) None ¶
Triggers a full run of a Schema using a Jenkins API request.
- Parameters:
schema (AutoTransformSchema) – The schema that will be run.
- class autotransform.runner.jenkins.JenkinsFileRunner¶
Bases:
Runner
A Runner component that creates files to trigger Jenkins jobs using https://plugins.jenkins.io/parameterized-trigger/.
- name¶
The name of the component.
- Type:
ClassVar[RunnerName]
- num_files¶
The number of files created by the runner.
- Type:
ClassVar[int]
- name: ClassVar[RunnerName] = 'jenkins_file'¶
- num_files: ClassVar[int] = 0¶
- run(schema: AutoTransformSchema) None ¶
Triggers a full run of a Schema by creating a file with the appropriate content.
- Parameters:
schema (AutoTransformSchema) – The schema that will be run.