airflow.providers.jenkins.sensors.jenkins

Module Contents

Classes

JenkinsBuildSensor

Monitor a jenkins job and pass when it is finished building. This is regardless of the build outcome.

class airflow.providers.jenkins.sensors.jenkins.JenkinsBuildSensor(*, jenkins_connection_id, job_name, build_number=None, **kwargs)[source]

Bases: airflow.sensors.base.BaseSensorOperator

Monitor a jenkins job and pass when it is finished building. This is regardless of the build outcome. This sensor depend on python-jenkins library,

Parameters
  • jenkins_connection_id (str) -- The jenkins connection to use for this job

  • job_name (str) -- The name of the job to check

  • build_number (Optional[int]) -- Build number to check - if None, the latest build will be used

poke(self, context)[source]

Function that the sensors defined while deriving this class should override.

Was this entry helpful?