-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new stage arguments #141
Conversation
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 😋
@@ -926,7 +934,11 @@ class NodeJSPipeline extends GenericPipeline { | |||
branch = changeInfo.branchName | |||
} | |||
|
|||
steps.sh "npm install" | |||
if (arguments.customInstallScript) { | |||
steps.sh "npm run ${arguments.customInstallScript}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assumes that the script has to be inlucede in the package.json#scripts
object.
Wondering if it's be good if customInstallScript == "${one-liner shell script}"
It could potentially lead to other problems, (like not properly quoting something)
So, Not a good idea 😋
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
pipeline.setup
- "customInstallScript" to specify an NPM script to run in place of "npm install"pipeline.version
- "inDir" to specify a subdirectory where "npm version" should be runpipeline.publish
- "inDir" to specify a subdirectory where "npm publish" should be run