Marcos de Oliveira opened 2 years ago
|
|||||
Robin Shen changed state to 'Closed' 2 years ago
|
|||||
Allowing arbitrary shell for running commands might be problematic, as different shell may have different options. Instead OneDev will add direct support for bash (issue #504) and powershell (issue #505), and leave others to be called by user in script. |
Type |
Improvement
|
Priority |
Normal
|
Assignee |
Issue Votes (0)
Currently, one would need to have a script in the source code, and then from the build spec, execute something like
bash myscript.sh
. Or, have some hack in the commands like:[ "$(readlink /proc/$$/exe)" = "$(which bash)" ] || exec bash $0
.What I propose: Having a field to input the shell (base name or whole path), and then use it in ServerDockerExecutor.java