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
I have a Jenkins pipeline script where I want to execute jf gradle .... The stage is executed by a docker agent. However, with Jenkins' tooling for Gradle (e.g. tools name: "gradle-8.5", type "gradle" will install the tool into /home//tool and add it to the path.
Current behavior
However, because the PATH is not passed onto the docker container doing the build (nor should it), the jf gradle command fails with command not found i.e. gradle is not on the path.
jfrog-cli should be aware of GRADLE_HOME and execute $GRADLE_HOME/bin/gradle if $GRADLE_HOME is found in the environment, otherwise fallback to using the PATH. Or maybe allow the user a command line option to specify the gradle executable??
Note that the jf plugin seems quite capable of locating the jf executable set in the environment as: JFROG_BINARY_PATH=/home/<user>/tools/io.jenkins.plugins.jfrog.JfrogInstallation/jfrog-cli
JFrog CLI version
2.73.2
Operating system type and version
linux
JFrog Artifactory version
N/A
JFrog Xray version
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a Jenkins pipeline script where I want to execute
jf gradle ...
. The stage is executed by a docker agent. However, with Jenkins' tooling for Gradle (e.g. tools name: "gradle-8.5", type "gradle" will install the tool into /home//tool and add it to the path.Current behavior
However, because the PATH is not passed onto the docker container doing the build (nor should it), the
jf gradle
command fails withcommand not found
i.e. gradle is not on the path.Reproduction steps
Expected behavior
jfrog-cli should be aware of GRADLE_HOME and execute $GRADLE_HOME/bin/gradle if $GRADLE_HOME is found in the environment, otherwise fallback to using the PATH. Or maybe allow the user a command line option to specify the gradle executable??
Note that the jf plugin seems quite capable of locating the
jf
executable set in the environment as:JFROG_BINARY_PATH=/home/<user>/tools/io.jenkins.plugins.jfrog.JfrogInstallation/jfrog-cli
JFrog CLI version
2.73.2
Operating system type and version
linux
JFrog Artifactory version
N/A
JFrog Xray version
N/A
The text was updated successfully, but these errors were encountered: