You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api-jobs.md
+13-38Lines changed: 13 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Job APIs
2
2
3
+
Enabling jobs APIs is done by setting both `MEND_RNV_API_ENABLED: true` and `MEND_RNV_API_ENABLE_JOBS: true` (both are backward compatible with `MEND_RNV_API_ENABLED`)
4
+
3
5
Job Logs APIs provide a summary of and content for the Job Logs generated by the Renovate CLI.
4
6
5
7
The Run Job API schedules a Renovate job to run against a given repository.
@@ -17,9 +19,6 @@ The list below describes the available Job Logs APIs. Follow the links on the AP
17
19
18
20
Job Logs APIs are enabled with Renovate Admin APIs, which is off by default.
19
21
20
-
The APIs can be enabled by setting the `MEND_RNV_ADMIN_API_ENABLED` environment variable to `true`.
21
-
You must also configure an API secret by setting the `MEND_RNV_SERVER_API_SECRET` variable.
22
-
23
22
Authentication is done via HTTP Auth, using the API secret as the password.
24
23
For example if the secret is `renovateapi` then you would authenticate by adding the following request header:
25
24
@@ -33,18 +32,17 @@ For example if the secret is `renovateapi` then you would authenticate by adding
33
32
34
33
See the table below for a list of Job Logs API URL formats.
{"name":"renovate","hostname":"271939e11491","pid":21,"level":20,"logContext":"5a3572bf-49fe-42bb-a066-ff1146fe83d1","msg":"Deleted 0 of 29 file cached entries in 840ms","time":"2024-05-13T12:42:30.193Z","v":0}
124
122
```
125
123
126
-
### Get Job Logs by JobID
127
-
128
-
API: [GET] /api/job/logs/{jobId}
129
-
130
-
**Description:** Returns the job logs for the specified JobID
131
-
132
-
Note: This returns the same as [Get Job Logs by Repo](#get-job-logs-by-repo) with JobID variation, but conveniently does not require the {org}/{repo} in the API endpoint.
133
-
134
-
**Example:** Fetch job logs for JobID `5a3572bf-49fe-42bb-a066-ff1146fe83d1`
{"name":"renovate","hostname":"271939e11491","pid":21,"level":20,"logContext":"5a3572bf-49fe-42bb-a066-ff1146fe83d1","msg":"Checking file package cache for expired items","time":"2024-05-13T12:42:29.351Z","v":0}
146
-
{"name":"renovate","hostname":"271939e11491","pid":21,"level":20,"logContext":"5a3572bf-49fe-42bb-a066-ff1146fe83d1","msg":"Verifying and cleaning cache: /tmp/renovate/cache/renovate/renovate-cache-v1","time":"2024-05-13T12:42:29.521Z","v":0}
147
-
{"name":"renovate","hostname":"271939e11491","pid":21,"level":20,"logContext":"5a3572bf-49fe-42bb-a066-ff1146fe83d1","msg":"Deleted 0 of 29 file cached entries in 840ms","time":"2024-05-13T12:42:30.193Z","v":0}
148
-
```
149
124
150
125
### Run Job on a Repo
151
126
152
-
API: [POST] /api/repos/{org}/{repo}/-/jobs/run
127
+
API: [POST] /api/v1/repos/{org}/{repo}/-/jobs/run
153
128
154
129
**Description:** Schedules a job to run Renovate on the given repository
Copy file name to clipboardExpand all lines: docs/api-reporting.md
+33-33Lines changed: 33 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ The list below describes the available reporting APIs. Follow the links on the A
23
23
24
24
## Enable Reporting APIs
25
25
26
-
To enable reporting APIs, set `MEND_RNV_REPORTING_ENABLED=true` on the CE/EE Server container.
26
+
To enable reporting APIs, set both `MEND_RNV_API_ENABLED: true` and `MEND_RNV_API_ENABLE_REPORTING: true` (backward compatible with `MEND_RNV_REPORTING_ENABLED: true`) on the CE/EE Server container.
27
27
Reporting APIs are disabled by default.
28
28
29
29
When Reporting APIs are enabled, relevant data will be collected after every Renovate job and stored locally in the Renovate database.
@@ -41,23 +41,23 @@ The `Repo pull requests` API is available for GitHub only. To enable it, see con
41
41
42
42
See the table below for a list of reporting API URL formats.
0 commit comments