Commit 4cb875c
committed
ci: support for jobName flag and v3 messages
Adds a --jobName argument to flow/util/uploadMetadata.py so the QoR
metadata published to Pub/Sub can carry the canonical Jenkins pipeline
name. When supplied (and non-blank after stripping whitespace), the
message is emitted as schema v3 (the v2 structure plus a top-level
job_name); otherwise the script behaves as before and emits v2.
This lets the palantir backend resolve the pipeline directly from
job_name instead of classifying the raw BUILD_TAG with a hardcoded
pattern table, so new pipelines appear on the dashboard without a
backend code change.
The >8 MB per-design fallback path is unchanged - it still emits v1
messages, which the backend continues to resolve via BUILD_TAG.
Signed-off-by: Miguel Pedro <miguel.pedro@precisioninno.com>1 parent 748bb11 commit 4cb875c
1 file changed
Lines changed: 29 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
220 | 230 | | |
221 | 231 | | |
222 | 232 | | |
223 | | - | |
224 | | - | |
225 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
226 | 243 | | |
227 | 244 | | |
228 | 245 | | |
| |||
232 | 249 | | |
233 | 250 | | |
234 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
235 | 255 | | |
236 | 256 | | |
237 | 257 | | |
238 | | - | |
| 258 | + | |
239 | 259 | | |
| 260 | + | |
| 261 | + | |
240 | 262 | | |
241 | | - | |
| 263 | + | |
| 264 | + | |
242 | 265 | | |
243 | 266 | | |
244 | 267 | | |
245 | 268 | | |
246 | | - | |
| 269 | + | |
247 | 270 | | |
248 | 271 | | |
249 | 272 | | |
| |||
0 commit comments