Commit Graph

17 Commits

Author SHA1 Message Date
Gabriel-Ladzaretti 257d9a9d8e fix(core/exec): use nodejs style error messages when throwing (#16961) 2022-08-04 14:29:11 +00:00
Gabriel-Ladzaretti 892595aea8 feat(util/exec): use spawn instead of exec (#16414)
* refactor(util): use spawn instead of exec

 - Use child_process.spawn instead of child_process.exec

* refactor(util): use spawn instead of exec

 - Use child_process.spawn instead of child_process.exec

* refactor(util): use spawn instead of exec

 - Use child_process.spawn instead of child_process.exec

* refactor(util): use spawn instead of exec

 - Use child_process.spawn instead of child_process.exec

* refactor(util): use spawn instead of exec

 - init spawn-util

* refactor(util): use spawn instead of exec

 - spawn-util

* refactor(util): use spawn instead of exec

 - init index-spawn.spec.ts

* refactor(util): use spawn instead of exec

 - fixed various tests

* refactor(util): use spawn instead of exec

 - fix all artifacts.spec.ts

* refactor(util): use spawn instead of exec

 - fix all artifacts.spec.ts

* refactor(util): use spawn instead of exec

 - fix npm post update imports

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff

* refactor(util): use spawn instead of exec

 - revert renaming to minimize PR diff
 - destroy stdio when terminating child process

* refactor(util): use spawn instead of exec

 - delete and revert dev related changes

* refactor(util): use spawn instead of exec
 - fix support for windows

* refactor(util): use spawn instead of exec

 - handle SIGSTOP and such
 - add test coverage

* refactor(util): use spawn instead of exec

 - now converts to strings when resolving/rejecting

* refactor(util): use spawn instead of exec

 - logs improvements
 - force shell (exec like)
 - fix tests

* refactor(util): use spawn instead of exec

 - strongly type listeners

* refactor(util): use spawn instead of exec

 - create helper mock for spawn

* refactor(util): use spawn instead of exec

 - cr changes

* Update lib/util/exec/common.ts

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

* refactor(util): use spawn instead of exec

 - documentation

* refactor(util): use spawn instead of exec

 - revert unnecessary formatting

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

 - added ExecError class

* refactor(util): use spawn instead of exec

 - exec-error.ts restructure

* refactor(util): use spawn instead of exec

* Apply suggestions from code review

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

 - deprecated RawExecOptions.encoding property

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

* refactor(util): use spawn instead of exec

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2022-07-22 15:43:28 +00:00
Rhys Arkins 328de3fc27 refactor: exec types (#12942) 2021-12-04 07:12:27 +01:00
Rhys Arkins 508cec1015 refactor: move preCommands out of docker options (#12938) 2021-12-03 12:07:32 +01:00
Rhys Arkins b95f608fa1 refactor: remove unused postCommands (#12939) 2021-12-03 11:00:49 +01:00
Sergei Zharinov 1b6ecd87c0 refactor: move binarySource option to admin config (#10022) 2021-06-02 06:50:23 +00:00
Sergei Zharinov fbbbce608e chore: Configure fs local dirs via admin config (#9990)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-05-17 13:21:28 +00:00
Rhys Arkins 80fd1fe0d6 refactor: move customEnvVariables to admin config 2021-02-07 22:07:16 +01:00
Rhys Arkins 4e2c33f10e feat: admin config init (#8546) 2021-02-05 09:20:47 +01:00
Rhys Arkins df2a31c7f5 fix: remove unused binarySource=auto (#8461) 2021-02-04 12:14:34 +01:00
Halil İbrahim Şener 207b177d60 feat: customEnvVariables (#8321)
Introduces a new option to pass custom environment variables to child processes. So that users can provide/override environment variables to influence executions, e.g. setting MAVEN_OPTS or passing credentials for private registries for the locking process.
2021-01-19 09:11:45 +01:00
Michael Kriese 0503ad7c7a feat: add docker image prefix (#7164)
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-09-08 12:59:47 +02:00
Rhys Arkins 53ca91301f chore: import linting (#6105) 2020-05-01 18:03:48 +02:00
Sergio Zharinov 969701ad6b feat(util): Fetch docker tag according to version constraints (#5497) 2020-02-19 19:02:11 +01:00
Sergio Zharinov 8b6d280741 feat(exec): Allow for extra docker commands (#5208) 2020-01-22 11:45:21 +01:00
Sergio Zharinov 60d895bd5c feat(exec): Cache Docker image prefetch info (#5205) 2020-01-22 09:19:29 +01:00
Sergio Zharinov ef7357d022 fix(exec): Refactor binarySource out to global setting (#5190)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-01-20 16:50:32 +01:00