Skip to content

Commit

Permalink
Again a workaround for SF bug (#413)
Browse files Browse the repository at this point in the history
* Again a workaround for SF bug

forcedotcom/cli#2445
AllanOricil  is a genius !

* Back to normal since forcedotcom/cli#2445 is fixed

* [Mega-Linter] Apply linters fixes

---------

Co-authored-by: nvuillam <[email protected]>
  • Loading branch information
nvuillam and nvuillam authored Sep 5, 2023
1 parent 2470cc2 commit 6cfd560
Show file tree
Hide file tree
Showing 7 changed files with 189 additions and 184 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

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

## [4.3.0] 2023-09-05

- Back to normal since <https://github.com/forcedotcom/cli/issues/2445> is fixed

## [4.2.5] 2023-09-05

- Downgrade to sfdx-cli until https://github.com/forcedotcom/cli/issues/2445 is solved.
- Downgrade to sfdx-cli until <https://github.com/forcedotcom/cli/issues/2445> is solved.

## [4.2.4] 2023-09-05

Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ ARG SFDX_HARDIS_VERSION=latest

# Install npm packages +install sfdx plugins & display versions
RUN npm install --no-cache yarn -g && \
npm install --no-cache sfdx-cli@${SFDX_CLI_VERSION} -g && \
npm install --no-cache @salesforce/cli@${SFDX_CLI_VERSION} -g && \
sf plugins install @salesforce/plugin-packaging && \
echo 'y' | sfdx plugins:install sfdx-hardis@${SFDX_HARDIS_VERSION} && \
echo 'y' | sfdx plugins:install sfdmu && \
echo 'y' | sfdx plugins:install sfdx-git-delta && \
echo 'y' | sfdx plugins:install sfdx-essentials && \
echo 'y' | sfdx plugins:install texei-sfdx-plugin && \
sfdx plugins && \
sf version --verbose --json && \
rm -rf /root/.npm/_cacache

# Workaround for https://github.com/forcedotcom/salesforcedx-apex/issues/213
Expand Down
345 changes: 174 additions & 171 deletions README.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion defaults/ci/azure-pipelines-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ jobs:
- script: |
npm install @salesforce/cli --global
sf plugins install @salesforce/plugin-packaging
sf plugins install @salesforce/[email protected]
echo 'y' | sfdx plugins:install sfdx-hardis
echo 'y' | sfdx plugins:install sfdx-essentials
echo 'y' | sfdx plugins:install sfdx-git-delta
Expand Down
1 change: 0 additions & 1 deletion defaults/ci/azure-pipelines-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
- script: |
npm install @salesforce/cli --global
sf plugins install @salesforce/plugin-packaging
sf plugins install @salesforce/[email protected]
echo 'y' | sfdx plugins:install sfdx-hardis
echo 'y' | sfdx plugins:install sfdx-essentials
echo 'y' | sfdx plugins:install sfdmu
Expand Down
1 change: 0 additions & 1 deletion defaults/monitoring/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ jobs:
- script: |
npm install @salesforce/cli -g
sf plugins install @salesforce/plugin-packaging
sf plugins install @salesforce/[email protected]
echo y | sfdx plugins:install sfdx-hardis
echo y | sfdx plugins:install sfdx-essentials
sf version --verbose --json
Expand Down
14 changes: 7 additions & 7 deletions docs/deployTips.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ description: Learn how to fix issues that can happen during sfdx deployments

This page summarizes all errors that can be detected by sfdx-hardis wrapper commands

| sfdx command | sfdx-hardis wrapper command |
| :----------- | :-------------------------- |
| [sfdx force:source:deploy](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_source.htm#cli_reference_force_source_deploy) | [sfdx hardis:source:deploy](https://sfdx-hardis.cloudity.com/hardis/source/deploy/) |
| [sfdx force:source:push](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_source.htm#cli_reference_force_source_push) | [sfdx hardis:source:push](https://sfdx-hardis.cloudity.com/hardis/source/push/) |
| [sfdx force:mdapi:deploy](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_mdapi.htm#cli_reference_force_mdapi_beta_deploy) | [sfdx hardis:mdapi:deploy](https://sfdx-hardis.cloudity.com/hardis/mdapi/deploy/) |
| sfdx command | sfdx-hardis wrapper command |
|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|
| [sfdx force:source:deploy](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_source.htm#cli_reference_force_source_deploy) | [sfdx hardis:source:deploy](https://sfdx-hardis.cloudity.com/hardis/source/deploy/) |
| [sfdx force:source:push](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_source.htm#cli_reference_force_source_push) | [sfdx hardis:source:push](https://sfdx-hardis.cloudity.com/hardis/source/push/) |
| [sfdx force:mdapi:deploy](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_mdapi.htm#cli_reference_force_mdapi_beta_deploy) | [sfdx hardis:mdapi:deploy](https://sfdx-hardis.cloudity.com/hardis/mdapi/deploy/) |

You can also use this function on a [sfdx-hardis Salesforce CI/CD project](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-home/)

Expand Down Expand Up @@ -302,7 +302,7 @@ You probably also need to add CRM Analytics Admin Permission Set assignment to t
## Error parsing file
- `Error (.*) Error parsing file: (.*) `
- `Error (.*) Error parsing file: (.*)`
**Resolution tip**
Expand Down Expand Up @@ -902,7 +902,7 @@ Please check https://developer.salesforce.com/forums/?id=9060G0000005kVLQAY
## Test classes with 0% coverage
- ` 0%`
- `0%`
**Resolution tip**
Expand Down

0 comments on commit 6cfd560

Please sign in to comment.