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
During JFrog installation, even if you set the JFROG_CLI_HOME env variable to set the home dir, the CLI creates the home dir under a tmp/ folder, which causes an issue where user cannot add the Artifactory public cert to JFrog CLI later via $JFROG_CLI_HOME/.jfrog/security/certs
Current behavior
During JFrog installation, CLI creates the JFROG_CLI_HOME under a temp dir, as seen in the debug output around creation of the config file lock under a tmp/ folder:
Because of this, when user passed the public cert via JFROG_CLI_HOME/.jfrog/security/certs, it wasn't added to JFrog CLI and caused this error: 19:58:38 [Error] The following error was received while trying to encrypt your password: Get "https://<URL>/artifactory/api/security/encryptedPassword": tls: failed to verify certificate: x509: certificate signed by unknown authority
Reproduction steps
Install JFrog Plugin to Jenkins, configure Artifactory connection, run example Jenkins pipeline script:
`pipeline {
agent any
Describe the bug
During JFrog installation, even if you set the JFROG_CLI_HOME env variable to set the home dir, the CLI creates the home dir under a tmp/ folder, which causes an issue where user cannot add the Artifactory public cert to JFrog CLI later via
$JFROG_CLI_HOME/.jfrog/security/certs
Current behavior
During JFrog installation, CLI creates the JFROG_CLI_HOME under a temp dir, as seen in the debug output around creation of the config file lock under a tmp/ folder:
[gradle-example-ci-server] $ /var/jenkins_home/tools/io.jenkins.plugins.jfrog.JfrogInstallation/jfrog-cli/jf c add arty [email protected] ******** --url=https://arty.jfrog.io/ --artifactory-url=https://arty.jfrog.io/artifactory --distribution-url=https://arty.jfrog.io/distribution --xray-url=https://arty.jfrog.io/xray --interactive=false --overwrite=true 16:38:23 [Debug] JFrog CLI version: 2.62.0 . . . 16:38:23 [Debug] Locking config file to run config AddOrEdit command. 16:38:23 [Debug] Creating lock in: /var/jenkins_home/workspace/test/gradle-examples/gradle-example-ci-server**@tmp/jfrog/37/.jfrog/locks/config** 16:38:23 [Debug] config file is released.
Because of this, when user passed the public cert via
JFROG_CLI_HOME/.jfrog/security/certs
, it wasn't added to JFrog CLI and caused this error:19:58:38 [Error] The following error was received while trying to encrypt your password: Get "https://<URL>/artifactory/api/security/encryptedPassword": tls: failed to verify certificate: x509: certificate signed by unknown authority
Reproduction steps
Install JFrog Plugin to Jenkins, configure Artifactory connection, run example Jenkins pipeline script:
`pipeline {
agent any
}`
Expected behavior
There should be a way to set the JFROG_CLI_HOME variable when running jf commands in jenkins.
JFrog plugin version
1.5
JFrog CLI version
2.60.0
Operating system type and version
macOS - 14.4.1 - 23E224
JFrog Artifactory version
No response
JFrog Xray version
No response
The text was updated successfully, but these errors were encountered: