Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when deployment is ok #988

Merged
merged 2 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

Note: Can be used with `sfdx plugins:install sfdx-hardis@beta` and docker image `hardisgroupcom/sfdx-hardis@beta`

## [5.14.3] 2025-01-10

- [hardis:project:deploy:smart](https://sfdx-hardis.cloudity.com/hardis/project/deploy/smart/) Fix crash when deployment is ok

## [5.14.2] 2025-01-10

- [hardis:project:deploy:smart](https://sfdx-hardis.cloudity.com/hardis/project/deploy/smart/) Fix parsing error in case it is UNKNOWN_ERROR
Expand Down
4 changes: 3 additions & 1 deletion src/commands/hardis/project/audit/apiversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export default class CallInCallOut extends SfCommand<any> {

It can also fix the apiVersions with the latest one, if parameter --fix is sent

Example to handle [ApexClass / Trigger & ApexPage mandatory version upgrade](https://help.salesforce.com/s/articleView?id=sf.admin_locales_update_api.htm&type=5) : sf hardis:project:audit:apiversion --metadatatype ApexClass,ApexTrigger,ApexPage --minimumapiversion 45.0 --fix
Example to handle [ApexClass / Trigger & ApexPage mandatory version upgrade](https://help.salesforce.com/s/articleView?id=sf.admin_locales_update_api.htm&type=5) :

\`sf hardis:project:audit:apiversion --metadatatype ApexClass,ApexTrigger,ApexPage --minimumapiversion 45.0 --fix\`
`

public static examples = [
Expand Down
2 changes: 1 addition & 1 deletion src/common/utils/deployUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export async function smartDeploy(
retry: deployment.retry || null,
});
if (deployRes.status === 0) {
uxLog(commandThis, c.grey(shortenLogLines(deployRes.stdout + deployRes.stderr)));
uxLog(commandThis, c.grey(shortenLogLines(JSON.stringify(deployRes))));
}
} catch (e: any) {
await generateApexCoverageOutputFile(e);
Expand Down
Loading