![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Assignee:
|
Unassigned |
|
Components:
|
nodejs-plugin |
|
Created:
|
19/Mar/15 6:07 PM
|
|
Description:
|
Executing code entered direclty into the text fields runs like a charm. This procedure works fine for small adhoc snippets, but has its limitations in an enterprise strength setup. Sooner or later one might want to keep the code under SCM control and only use a 'run' stub to execute.
A workspace local, node module compliant directory 'node_modules' is not taken into account when require()ing modules, because the script is executed in /tmp using a unique ID as filename.
Copying the local node_modules folder to /tmp resolves the issue, but this is a rather clumsy workaround because (a) you have to remember to remove it afterwards, and (b) what if two jobs need different node_module folder.
Is it a viable option to have a '[x] Stay local' option for scripts that require require()?
|
|
Environment:
|
Any
|
|
Project:
|
Jenkins
|
|
Priority:
|
Minor
|
|
Reporter:
|
Jochen Hinrichsen
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[email protected].
For more options, visit
https://groups.google.com/d/optout.