Commit 1ebefbc
fix: ensure jiraticket survives eval parse_yaml in update_config.sh
Root cause: eval $(parse_yaml config.yml) inside update_config.sh was
silently overwriting $jiraticket (set by the lookup) because the YAML
key and pipeline variable share the same name. 00_unpack_zip.sh and
other downstream scripts also call eval parse_yaml, compounding the
problem.
Fix:
- update_config.sh: save $jiraticket before eval, restore it after so
pipeline/environment value takes precedence over config.yml value
- Both populate pipelines: move ./tools/update_config.sh to immediately
after the jiraticket lookup (before 00_unpack_zip.sh and friends),
so jiraticket is committed to config.yml before any script can clobber it
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 333122b commit 1ebefbc
2 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| |||
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
260 | | - | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| 425 | + | |
425 | 426 | | |
426 | 427 | | |
427 | 428 | | |
| |||
442 | 443 | | |
443 | 444 | | |
444 | 445 | | |
445 | | - | |
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
39 | | - | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
0 commit comments