Skip to content

Commit

Permalink
Downgrade @salesforce/plugin-deploy-retrieve to v1.17.6 as workaround…
Browse files Browse the repository at this point in the history
… for SF cli bug (#412)

* Downgrade @salesforce/plugin-deploy-retrieve to v1.17.6 as workaround for SF cli bug 

Related bug: forcedotcom/cli#2445

* Dockerfile fix

* [Mega-Linter] Apply linters fixes

---------

Co-authored-by: nvuillam <[email protected]>
  • Loading branch information
nvuillam and nvuillam authored Sep 5, 2023
1 parent ca30817 commit 66522c0
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 186 deletions.
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`

## [4.2.4] 2023-09-05

- Downgrade @salesforce/plugin-deploy-retrieve to v1.17.6 as workaround for SF cli bug <https://github.com/forcedotcom/cli/issues/2445>

## [4.2.3] 2023-09-04

- Fix issues with Org monitoring when there are issues with Legacy API
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ ARG SFDX_HARDIS_VERSION=latest
RUN npm install --no-cache yarn -g && \
npm install --no-cache @salesforce/cli@${SFDX_CLI_VERSION} -g && \
sf plugins install @salesforce/plugin-packaging && \
sf plugins install @salesforce/[email protected] \
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 --version && \
sfdx plugins && \
sf version --verbose --json \
rm -rf /root/.npm/_cacache

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

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions defaults/ci/azure-pipelines-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ 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 [email protected]
sfdx --version
sfdx plugins
echo 'y' | sfdx plugins:install sfdx-git-delta
sf version --verbose --json
displayName: "Install SFDX & plugins"
# Login & check deployment to PR target branch related org (configuration: https://hardisgroupcom.github.io/sfdx-hardis/salesforce-ci-cd-setup-auth/ )
Expand Down
6 changes: 3 additions & 3 deletions defaults/ci/azure-pipelines-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ 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
echo 'y' | sfdx plugins:install [email protected]
sfdx --version
sfdx plugins
echo 'y' | sfdx plugins:install sfdx-git-delta
sf version --verbose --json
displayName: "Install SFDX & plugins"
# Login & Deploy sfdx sources to related org (configuration: https://hardisgroupcom.github.io/sfdx-hardis/salesforce-ci-cd-setup-auth/ )
Expand Down
2 changes: 2 additions & 0 deletions defaults/monitoring/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ 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
workingDirectory: $(System.DefaultWorkingDirectory)
displayName: Install @salesforce/cli & sfdx-hardis
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 66522c0

Please sign in to comment.