54 lines
1.7 KiB
JSON
54 lines
1.7 KiB
JSON
{
|
|
"tasks": [
|
|
{
|
|
"name": "ozon-seller-pipeline",
|
|
"runner": "http",
|
|
"schedules": [{ "cron": "0 2 * * *" }],
|
|
"config": {
|
|
"url": "http://ozon-seller-builder:8080/run",
|
|
"method": "POST",
|
|
"envelope": true,
|
|
"auth": { "apiKey": "__SCHED_API_KEY__" },
|
|
"data": {
|
|
"stages": ["fetch", "hash", "patch", "diff", "classify", "generate", "fix", "build", "postman", "state"]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "yandex-market-pipeline",
|
|
"runner": "http",
|
|
"schedules": [{ "cron": "30 2 * * *" }],
|
|
"config": {
|
|
"url": "http://ym-client-builder:8080/run",
|
|
"method": "POST",
|
|
"envelope": true,
|
|
"auth": { "apiKey": "__SCHED_API_KEY__" },
|
|
"data": {
|
|
"stages": ["fetch", "detect", "diff", "classify", "patch", "generate", "fix", "build", "test", "postmanGenerate", "postman"],
|
|
"repo": "https://github.com/yandex-market/yandex-market-partner-api",
|
|
"branch": "main",
|
|
"workDir": "data/clone",
|
|
"specDir": "data/openapi/snapshots",
|
|
"snapshotsDir": "data/openapi/snapshots",
|
|
"statePath": "data/state.json",
|
|
"outputDir": "data/output/typescript",
|
|
"testsDir": "tests/client",
|
|
"notify": {
|
|
"ntfy": { "url": "http://ntfy", "topic": "ym-client-builder" },
|
|
"email": { "to": "vitya.kuznetsov@gmail.com", "on": ["published", "report", "failed"] }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"alerts": {
|
|
"on": ["failed"],
|
|
"onMissed": true,
|
|
"webhook": {
|
|
"url": "http://alert-bridge:9090/webhook",
|
|
"secret": "__WEBHOOK_SECRET__",
|
|
"timeoutMs": 10000
|
|
}
|
|
}
|
|
}
|