Airflow Summit 2025 is coming October 07-09. Register now to secure your spot!

airflow.providers.jenkins.sensors.jenkins

Classes

JenkinsBuildSensor

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

Module Contents

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

Bases: airflow.providers.jenkins.version_compat.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

job_name[source]
build_number = None[source]
jenkins_connection_id[source]
target_states = ['SUCCESS', 'FAILED'][source]
poke(context)[source]

Override when deriving this class.

Was this entry helpful?