Skip to content

jfrog CLI plugin v 1.5.8 again has "--password-stdin" enabled as reported in this issue - https://github.com/jenkinsci/jfrog-plugin/issues/42. #47

@parameswaranj

Description

@parameswaranj

Describe the bug

Recently updated the Jfrog Plugin on Jenkins to v 1.5.8 and it again asks the same --password-stdin as reported here - #42.

As the issue says, no issues with plugin ver 1.5.5.

Evidence in our current jenkins pipeline logs:

Executing sh script inside container python-metrics of pod build-jobs-testapp-86-97p2s-bgn1s Executing command: "/home/jenkins/agent/tools/io.jenkins.plugins.jfrog.JfrogInstallation/jfrog-cli/jf" "-v" exit jf version 2.73.2 Executing sh script inside container python-metrics of pod build-jobs-testapp-86-97p2s-bgn1s Executing command: "/home/jenkins/agent/tools/io.jenkins.plugins.jfrog.JfrogInstallation/jfrog-cli/jf" "c" "add" "jfrog-prod" "--user=jenkins" "--password-stdin" "--url=https://artifactory.xxx.com/" "--artifactory-url=https://artifactory.xxx.com/artifactory" "--distribution-url=https://artifactory.xxx.com/distribution" "--xray-url=https://artifactory.xxx.com/xray" "--interactive=false" "--overwrite=true" exit

The command continues to run until the pipeline is aborted.

Current behavior

Output of the pipeline with the JFROG_CLI_LOG_LEVEL="DEBUG" enabled.

Executing sh script inside container python-metrics of pod build-jobs-testapp-86-97p2s-bgn1s Executing command: "/home/jenkins/agent/tools/io.jenkins.plugins.jfrog.JfrogInstallation/jfrog-cli/jf" "-v" exit jf version 2.73.2 Executing sh script inside container python-metrics of pod build-jobs-testapp-86-97p2s-bgn1s Executing command: "/home/jenkins/agent/tools/io.jenkins.plugins.jfrog.JfrogInstallation/jfrog-cli/jf" "c" "add" "jfrog-prod" "--user=jenkins" **"--password-stdin"** "--url=https://artifactory.xxx.com/" "--artifactory-url=https://artifactory.xxx.com/artifactory" "--distribution-url=https://artifactory.xxx.com/distribution" "--xray-url=https://artifactory.xxx.com/xray" "--interactive=false" "--overwrite=true" exit 22:13:22 [Debug] JFrog CLI version: 2.73.2 22:13:22 [Debug] OS/Arch: linux/amd64 22:13:22 [Debug] JFrog CLI version: 2.73.2 22:13:22 [Debug] OS/Arch: linux/amd64 22:13:22 [Debug] Trace ID for JFrog Platform logs: ae2f2f439b4bdd20 22:13:22 [Debug] Trace ID for JFrog Platform logs: ae2f2f439b4bdd20

Reproduction steps

Update Jfrog plugin to 1.5.8
Test any pipeline that uses "jf c add" command from the plugin.

Expected behavior

jf c add command should use the stored credential without waiting for an input and proceed forward.

JFrog plugin version

1.5.8

JFrog CLI version

2.73.2

Operating system type and version

running on a Kubernetes pod on a docker linux container (ex, node or python)

JFrog Artifactory version

7.71.9

JFrog Xray version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions