From 82866574e0028612ab9c1654913608ce0fcc1b0b Mon Sep 17 00:00:00 2001 From: akulavasu <34706681+akulavasu@users.noreply.github.com> Date: Thu, 21 Dec 2023 18:56:39 +0530 Subject: [PATCH] Update Jenkinsfile Sourcing nvm.sh for nvm function to work. --- pipelines/deploy/ContentFramework/Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pipelines/deploy/ContentFramework/Jenkinsfile b/pipelines/deploy/ContentFramework/Jenkinsfile index f85dc9b7d3..887d8a07ea 100644 --- a/pipelines/deploy/ContentFramework/Jenkinsfile +++ b/pipelines/deploy/ContentFramework/Jenkinsfile @@ -44,7 +44,9 @@ node() { sh """ zip -r content-editor-artifact.zip ansible/content-editor cd ansible/content-editor - nvm use 6 + export NVM_DIR=/home/ubuntu/.nvm + [ -s "\$NVM_DIR/nvm.sh" ] && . "\$NVM_DIR/nvm.sh" + nvm use 6 sudo npm install -g gulp npm install npm install promise