You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Triggered by #677
When an envActivation is given to PipInstall, a PipDriver is created with the command set to envActivation + " && pip".
PipDriver then forwards this to CommandExecutor, setting the executablePath to the said value.
CommandExecutor escapes the spaces, treating the whole string like a single executable.
e.g. /bin/sh -c source\ env/bin/activate\ &&\ pip"
To Reproduce
Using a Jenkins Pipeline with the Artifactory plugin version 3.18.0, eg
I'm actually somewhat shocked that this issue doesn't have more comments and upvotes - the primary use case (afaik) for including an envActivation param in a rtPipInstall build step is completely broken by this bug.
JFrog recommends switching to the JFrog Jenkins plugin, which is a simple wrapper around the JFrog CLI tool. We have done so, and I'd recommend it too, since it's more feature rich, is actively developed, and allows one to more easily run the same code both in the Jenkinsfile and the command line.
Describe the bug
Triggered by #677
When an envActivation is given to PipInstall, a PipDriver is created with the command set to
envActivation + " && pip"
.PipDriver then forwards this to CommandExecutor, setting the executablePath to the said value.
CommandExecutor escapes the spaces, treating the whole string like a single executable.
e.g.
/bin/sh -c source\ env/bin/activate\ &&\ pip"
To Reproduce
Using a Jenkins Pipeline with the Artifactory plugin version 3.18.0, eg
Expected behavior
Users should be able to pass an envActivation to PipInstall.
Example Failure on Jenkins
Note the escaped spaces.
Versions
The text was updated successfully, but these errors were encountered: