{
  "repo": "tidbcloud/cloud-cicd",
  "binary": "jenkins-notify",
  "binary_path": "jenkins_notify/notify.py",
  "dependencies": {
    "CLI python jenkins_notify/notify.py <job metadata>": {
      "infrastructure": {
        "http": {
          "conditions": [
            "When querying Jenkins artifacts, Feishu webhooks, or Jira"
          ],
          "operations": [
            {
              "operation": "GET / POST",
              "trigger": "Fetch report data and send notifications or issue creation requests",
              "conditions": [
                "The notifier is executed for a Jenkins result"
              ],
              "implementation": "requests.get/post calls throughout notify.py"
            }
          ]
        },
        "mysql": {
          "conditions": [
            "When persisting result rows"
          ],
          "operations": [
            {
              "operation": "INSERT / UPDATE",
              "trigger": "Write test summary data into the case_owner database",
              "conditions": [
                "insertResultToMysql() is executed"
              ],
              "implementation": "pymysql.connect(...) and subsequent SQL execution in insertResultToMysql()"
            }
          ]
        }
      },
      "services": []
    }
  }
}
