From a708ae5946ab42a045384ce516bae6d310587aa6 Mon Sep 17 00:00:00 2001 From: Nial <48334675+nmcc1212@users.noreply.github.com> Date: Fri, 5 Apr 2024 16:27:49 +0100 Subject: [PATCH] Update Jenkinsfile to include npm install step in deploy stage --- Jenkins/Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkins/Jenkinsfile b/Jenkins/Jenkinsfile index 003adff..e113897 100644 --- a/Jenkins/Jenkinsfile +++ b/Jenkins/Jenkinsfile @@ -46,7 +46,7 @@ pipeline { stage('Deploy') { steps { script { - sh "ssh -i ${SSH_KEY} ubuntu@13.49.230.240 'screen && cd TSI/next/news-aggregation && npm run dev'" + sh "ssh -i ${SSH_KEY} ubuntu@13.49.230.240 'screen && cd TSI/next/news-aggregation && npm install && npm run dev'" } } }