From fd03c4fc4510e6a94fe1070f10e3e92bf1bce292 Mon Sep 17 00:00:00 2001 From: Alex Guerra Date: Wed, 17 Jul 2019 17:32:55 -0500 Subject: [PATCH 1/3] Attempt at fixing CI issue on windows --- tasks/local-registry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/local-registry.sh b/tasks/local-registry.sh index 715380a8a85..aa23492e78e 100644 --- a/tasks/local-registry.sh +++ b/tasks/local-registry.sh @@ -27,7 +27,7 @@ function stopLocalRegistry { yarn config set registry "$original_yarn_registry_url" # Kill Verdaccio process - ps -ef | grep 'verdaccio' | grep -v grep | awk '{print $2}' | xargs kill -9 + ps -ef | grep 'verdaccio' | grep -v grep | awk '{print $2}' | xargs -r kill -9 } function publishToLocalRegistry { From 811c4fb7bb891af856f1ad7c5fe4b18cbd00be65 Mon Sep 17 00:00:00 2001 From: Alex Guerra Date: Wed, 17 Jul 2019 18:30:24 -0500 Subject: [PATCH 2/3] Try to debug why verdaccio isn't in the ps output --- tasks/local-registry.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/local-registry.sh b/tasks/local-registry.sh index aa23492e78e..4adcd7e0708 100644 --- a/tasks/local-registry.sh +++ b/tasks/local-registry.sh @@ -26,8 +26,11 @@ function stopLocalRegistry { npm set registry "$original_npm_registry_url" yarn config set registry "$original_yarn_registry_url" + # Let's see what ps -ef output looks like? + ps -ef + # Kill Verdaccio process - ps -ef | grep 'verdaccio' | grep -v grep | awk '{print $2}' | xargs -r kill -9 + ps -ef | grep 'verdaccio' | grep -v grep | awk '{print $2}' | xargs kill -9 } function publishToLocalRegistry { From 7481aad98975585f25f20740a2ce18002558c1af Mon Sep 17 00:00:00 2001 From: Alex Guerra Date: Wed, 17 Jul 2019 23:09:41 -0500 Subject: [PATCH 3/3] Just remove the kill call alltogether --- tasks/local-registry.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tasks/local-registry.sh b/tasks/local-registry.sh index 4adcd7e0708..f19a73c4ca3 100644 --- a/tasks/local-registry.sh +++ b/tasks/local-registry.sh @@ -25,12 +25,6 @@ function stopLocalRegistry { # Restore the original NPM and Yarn registry URLs and stop Verdaccio npm set registry "$original_npm_registry_url" yarn config set registry "$original_yarn_registry_url" - - # Let's see what ps -ef output looks like? - ps -ef - - # Kill Verdaccio process - ps -ef | grep 'verdaccio' | grep -v grep | awk '{print $2}' | xargs kill -9 } function publishToLocalRegistry {