Commit 0cb6251
authored
Detect if Dockerfile for docker-ptf is modified (#23869)
Why I did it
Detect changes in PR for dockers/docker-ptf/Dockerfile.j2 and pass flag to sonic-mgmt tests. This change will be used in sonic-mgmt tests to download the PR built docker-ptf.gz image instead of testing against the latest tag which was published from master branch builds.
Work item tracking
Microsoft ADO (number only): 34093272
How I did it
Added code to detect change and pass PTF_MODIFIED flag.
How to verify it
Can be tested after PR merges in sonic-mgmt and elastic test.
Tested branch (Please provide the tested image version)
NA
Description for the changelog
[docker-ptf] Detect if PR modifies docker-ptf Dockerfile.
Pass flag to sonic-mgmt test stage in pipeline if PR modifies docker-ptf Dockerfile.1 parent 744e74f commit 0cb6251
File tree
2 files changed
+30
-0
lines changed- .azure-pipelines
2 files changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
85 | 105 | | |
86 | 106 | | |
87 | 107 | | |
| |||
100 | 120 | | |
101 | 121 | | |
102 | 122 | | |
| 123 | + | |
103 | 124 | | |
104 | 125 | | |
105 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| |||
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
| 212 | + | |
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
| |||
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
| 241 | + | |
238 | 242 | | |
239 | 243 | | |
240 | 244 | | |
| |||
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
| 271 | + | |
267 | 272 | | |
268 | 273 | | |
269 | 274 | | |
| |||
293 | 298 | | |
294 | 299 | | |
295 | 300 | | |
| 301 | + | |
296 | 302 | | |
297 | 303 | | |
298 | 304 | | |
| |||
321 | 327 | | |
322 | 328 | | |
323 | 329 | | |
| 330 | + | |
324 | 331 | | |
325 | 332 | | |
326 | 333 | | |
| |||
350 | 357 | | |
351 | 358 | | |
352 | 359 | | |
| 360 | + | |
353 | 361 | | |
354 | 362 | | |
355 | 363 | | |
| |||
381 | 389 | | |
382 | 390 | | |
383 | 391 | | |
| 392 | + | |
384 | 393 | | |
385 | 394 | | |
386 | 395 | | |
| |||
0 commit comments