PromucFlow_constructor/scripts
Goutham Pratapa bde2554782
refactor: enhance deploy_preview.sh for idempotent Helm repo addition… (#41043)
… and plugin management

### Changes Made
- Updated Helm repo addition to be idempotent, preventing errors if the
repo is already added.
- Added logic to check for the existence of the mapkubeapis plugin
before attempting installation, improving script robustness.
- Enhanced error handling for optional commands to ensure the deployment
process continues smoothly even if certain steps fail.

These improvements streamline the deployment process and enhance the
reliability of the script.

## Description
> [!TIP]  
> _Add a TL;DR when the description is longer than 500 words or
extremely technical (helps the content, marketing, and DevRel team)._
>
> _Please also include relevant motivation and context. List any
dependencies that are required for this change. Add links to Notion,
Figma or any other documents that might be relevant to the PR._


Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No
2025-06-25 19:22:07 +05:30
..
build_dp_from_branch.sh ci: Use default CS URL for DPs (#25938) 2023-08-16 17:29:10 +05:30
cleanup_dp.sh fix cleanup of dps (#27159) 2023-09-11 16:37:27 +05:30
deploy_preview.sh refactor: enhance deploy_preview.sh for idempotent Helm repo addition… (#41043) 2025-06-25 19:22:07 +05:30
generate_info_json.sh ci: Include build information in Docker image labels (#39047) 2025-02-06 11:22:19 +05:30
health_check.sh ci: docDB int test wait for appsmith health before cypress (#26655) 2023-08-25 15:27:48 +05:30
local_testing.sh fix: Add password based auth for postgres (#37068) 2024-12-06 10:49:27 +05:30
prepare_server_artifacts.sh feat: Make images adaptable to support both Postgres and MongoDB uris (#36424) 2024-09-19 21:45:46 +05:30
regen-baseline.sh chore: Add mover script for Mongo to postgres migration (#36458) 2024-09-25 15:22:02 +05:30
scout_vulnerabilities_data.sh chore: Adding step for install (#37276) 2024-11-07 15:39:33 +05:30
trivy_vulnerabilities_data.sh CI: Update Trivy DB (#38397) 2024-12-30 12:54:27 +05:30