SasanAhmadi opened a new issue #22417: URL: https://github.com/apache/airflow/issues/22417
### Description Sensor for jenkins jobs in airflow. There are cases in which we need to monitor the state of a build in jenkins and pause the DAG until the build finishes. ### Use case/motivation I am trying to achieve a way of pausing the DAG until a build or the last build in a jenkins job finishes. This could be done in different ways but cleanest is to have a dedicated jenkins sensor in airflow and use jenkins hook and connection. There are two cases to monitor a job in jenkins 1. Specify the build number to monitor 2. Get the last build automatically and check whether it is still running or not. Technically the only important thing from a sensor perspective is to check whether the build is ongoing or finished. Monitoring for a specific Status or result doesn't make sense in this use case. This use case only concerns whether there is an ongoing build in a job or not. If a current build is ongoing then wait for it to finish. If build number not specified, sensor should query for the latest build number and check whether it is running or not. If build number is specified, it should check the run state of that specific build. ### Related issues There are no related issues. ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
