Skip to content

Jenkins jfrog plugin stops working with error about encryption key file #59

@enaess

Description

@enaess

Describe the bug

Just upgraded to the latest jfrog-plugin on Jenkins (1.6.0), running Jenkins 2.541.1. Now, all my builds stopped working.

Current behavior

The build bombs out with the following:

[Test_-_Child] $ docker exec --workdir C:\Jenkins\workspace\Test_-_Child --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** --env ******** 65fc47e951ef2fa56a5aada11df4975b802c47a1ccfd5183054733e928c0c35c cmd.exe /C "C:\Jenkins\tools\io.jenkins.plugins.jfrog.JfrogInstallation\jfrog-cli\jf.exe c add art1 --user=buildops ******** --url=https://xxxx.xxxx.com/ --artifactory-url=https://xxxx.xxxx.com/artifactory --distribution-url=https://xxxx.xxxx.com/distribution --xray-url=https://xxxx.xxxx.com/xray --interactive=false --overwrite=true && exit %%ERRORLEVEL%%"
11:51:36 [Warn] failed while trying to check latest JFrog CLI version: json: unknown field "url"
11:51:36 [Info] Trace ID for JFrog Platform logs: 91dd7e8b3e843702
11:51:36 [Error] failed to stat encryption key file 'C:\Jenkins\workspace\Test_-_Child/.jfrog/encryption/6fef8ed4-d45f-4db5-af4f-295c7f775eee.key': GetFileAttributesEx C:\Jenkins\workspace\Test_-_Child/.jfrog/encryption/6fef8ed4-d45f-4db5-af4f-295c7f775eee.key: The system cannot find the file specified.

Reproduction steps

            tools {
                jfrog "jfrog-cli"
            }
            steps {
                script {
                    jf 'rt ping'
                    powershell '''
                        Start-Sleep -Seconds 700
                    '''
                }
            }
        }

Expected behavior

This should work.

JFrog plugin version

1.6.0

JFrog CLI version

2.91.0

Operating system type and version

Windows, Linux, Mac

JFrog Artifactory version

7.133.3

JFrog Xray version

N/A

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions