Commit 557f558
committed
fix(ci): use 'sonar analyze --save' directly; agent-scan was a deleted skill-shell wrapper
The self-scan + parity workflows invoked '$SONAR_PREDICTOR_HOME/bin/sonar agent-scan analyze .',
but 'agent-scan' was never a CLI subcommand — it was a shell function defined inside the OLD
plugin/skills/sonar-predictor/bin/sonar wrapper that this branch deletes. The new distribution's
bin/sonar is a thin pass-through to the Java CLI, so the call now errors:
Unmatched argument at index 0: 'agent-scan'
Did you mean: sonar analyze?
Replace with the equivalent direct invocation:
sonar --format json --save .sonar-predictor/scan.json analyze . --coverage <jacoco.xml>
--save was already a global option on the CLI (visible in sonar --help) — it captures the same
JSON the old wrapper redirected to scan.json. The downstream Render scan summary / Quality gate /
Upload artifact steps in both workflows already read .sonar-predictor/scan.json, so no change
needed there.1 parent 2c792c2 commit 557f558
2 files changed
Lines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
94 | 92 | | |
95 | 93 | | |
96 | 94 | | |
| |||
104 | 102 | | |
105 | 103 | | |
106 | 104 | | |
107 | | - | |
108 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
0 commit comments