From 81e23802be9c865397abbe541f3a9541fae74c29 Mon Sep 17 00:00:00 2001 From: Nial <48334675+nmcc1212@users.noreply.github.com> Date: Fri, 5 Apr 2024 17:07:13 +0100 Subject: [PATCH] Update npm run command to use sudo --- Jenkins/Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkins/Jenkinsfile b/Jenkins/Jenkinsfile index f7d362d..8f24852 100644 --- a/Jenkins/Jenkinsfile +++ b/Jenkins/Jenkinsfile @@ -44,7 +44,7 @@ pipeline { steps { script { sshagent(['nial-ssh-creds']) { - sh "ssh -o StrictHostKeyChecking=no ubuntu@13.49.230.240 'screen -d -m && cd TSI/next/news-aggregation && npm install && npm run dev -- -p 80'" + sh "ssh -o StrictHostKeyChecking=no ubuntu@13.49.230.240 'screen -d -m && cd TSI/next/news-aggregation && npm install && sudo npm run dev -- -p 80'" } } }