airflow.providers.jenkins.sensors.jenkins

Module Contents

Classes

JenkinsBuildSensor

Monitor a Jenkins job and pass when it is finished building.

class airflow.providers.jenkins.sensors.jenkins.JenkinsBuildSensor(*, jenkins_connection_id, job_name, build_number=None, target_states=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.

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 (int | None) – Build number to check - if None, the latest build will be used

poke(context)[source]

Override when deriving this class.

Was this entry helpful?