tf-a-commitlint: ensure Bash is executed
It appears that the default shell is not Bash, which it needs to be for
NVM to be available. Make sure that we are executing NVM via Bash.
Change-Id: I8fd8df63d5eefcb7edb82456f507ba8dd3a29b93
Signed-off-by: Chris Kay <chris.kay@arm.com>
diff --git a/tf-a-commitlint/Jenkinsfile b/tf-a-commitlint/Jenkinsfile
index 9d1d44f..ac84663 100644
--- a/tf-a-commitlint/Jenkinsfile
+++ b/tf-a-commitlint/Jenkinsfile
@@ -46,12 +46,12 @@
steps {
script {
if (fileExists('.nvmrc')) {
- sh "nvm install"
+ sh "bash -c 'nvm install'"
}
}
- sh "npm install --no-save commitlint"
- sh "npx commitlint --from=${mergeBase}"
+ sh "bash -c 'npm install --no-save commitlint'"
+ sh "bash -c 'npx commitlint --from=${mergeBase}'"
}
}
}