Direct Answer
Qodana CLI does not have confirmed automatic retry behavior for cloud result uploads after a JetBrains Account token expires or is revoked mid-scan. Treat token expiry as an authentication failure that stops the upload step. The local analysis may finish, but cloud publication is not confirmed to resume, roll back partially sent results, or checkpoint for later resumption.
Likely Explanation vs Confirmed Facts
Confirmed facts
- Qodana CLI authenticates to Qodana Cloud using a JetBrains Account token supplied through the CLI or CI environment.
- A dedicated service-account token is the least-privilege alternative to a personal token.
- Token expiry before upload starts prevents cloud publication entirely.
Likely explanation, not confirmed
- Result production and cloud upload are separate stages, so the local scan can continue after an authentication failure.
- Expiry during upload likely fails the active request without confirmed rollback of already-transmitted result parts.
- No documented resume or checkpoint mechanism exists for refreshing a token and continuing an in-progress cloud scan.
Steps for This Case
- Replace personal tokens in CI with a dedicated service-account token scoped to Qodana Cloud uploads.
- Pass the token through the CLI option or environment variable supported by your installed Qodana CLI version.
- Keep the token valid for the full CI job, or rotate it before expiry outside the CLI; do not assume automatic token refresh.
- On upload failure, inspect the CLI exit code and upload logs for authentication errors, then re-run the scan or upload.
- Do not treat a partially uploaded cloud scan as resumable unless current Qodana documentation confirms it.
Verification
qodana --help | grep -i token
echo "$QODANA_TOKEN"
Run a controlled scan with a short-lived token and observe whether the upload step retries, fails, or leaves a partial cloud result. Record the exit code and upload log lines.
Missing diagnostic detail: Which Qodana CLI version are you running? Token option names and environment variables can differ between versions, which changes the exact verification command.