From b37b89b96bdb372a29a899cd7d0d9f74dfb462b1 Mon Sep 17 00:00:00 2001 From: Ivailo Borisov <103942502+IvkoniB@users.noreply.github.com> Date: Wed, 8 Jul 2026 10:19:39 +0300 Subject: [PATCH] performCleanup in release.JenkinsFile to clean the .npmrc file from the correct folder (#3043) ## What Updated `performCleanup` step in `release.JenkinsFile` to remove the `.npmrc` file from the correct directory. The cleanup path was corrected from `cypress-test` to `e2e-tests`. ## Why `.npmrc` credentials file was not being removed as part of the final release step because it was pointing to the wrong folder. This left sensitive credentials behind after pipeline execution and made the cleanup step ineffective. ## How Adjusted cleanup logic in `release.JenkinsFile` so that `performCleanup` targets the `e2e-tests` directory instead of `cypress-test`, ensuring the `.npmrc` file is properly removed during the final stage of the pipeline. ## Testing Have not tested due to unnecessary potential version collision with artifacts and metadata ## Screenshots N/A ## Checklist - [x] Branch name - [x] Target branch - [x] Commit messages - [x] Squash commits - [x] MR name - [x] MR Description - [ ] Tests - [ ] Browser support verified (cherry picked from commit bcf56cfcbb5a69c3c958c2d423d2dd0a7438227d) --- release.Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.Jenkinsfile b/release.Jenkinsfile index 66ffd1fcd1..77d0679abd 100644 --- a/release.Jenkinsfile +++ b/release.Jenkinsfile @@ -3,7 +3,7 @@ def performCleanup = { dir("${env.WORKSPACE}") { sh "git restore .npmrc || git checkout HEAD -- .npmrc" - dir("test-cypress") { + dir("e2e-tests") { sh "rm -f .npmrc" } }