jenkinsci / jenkinsci/jfrog-plugin
Plugin deletes the jfrog home directory on the controller instead of the agent
- Dominant language
- Java
- Stars
- 16
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
I'm executing jenkins jobs on both ephemeral and persistent nodes.
The plugin creates the encrypted config on the worker node correctly. At the end of the pipeline the plugin does not delete the file on the worker node but on the controller.
### Current behavior
The log contains a directory on the controller. This is especially obvious when the controller is running a different OS from the worker node:
```
17:44:04 [Pipeline] script
17:44:04 [Pipeline] {
17:44:04 [Pipeline] powershell
17:44:05 [Pipeline] jf
17:43:47 [dir] $ cmd.exe /C "C:\JenkinsAgentWorkspace\tools\io.jenkins.plugins.jfrog.JfrogInstallation\jf-2.58.2\jf.exe
...
17:44:09
17:44:09 /var/jenkins_home/jobs/misc/jobs/test/jobs/update/workspace/PR-12@tmp/jfrog/4/.jfrog deleted
17:44:09 Finished: FAILURE
```
### Reproduction steps
* Configure a (persistent) remote worker node in jenkins
* execute a `jf` task on that node
### Expected behavior
After execution the jfrog home directory in workspace temp folder **on the worker node** is deleted.
### JFrog plugin version
1.5.0
### JFrog CLI version
2.58.2
### Operating system type and version
Linux controller, windows server 2022 datacenter worker
### JFrog Artifactory version
_No response_
### JFrog Xray version
_No response_
Contributor guide
Research direction
Start by locating the cleanup performed after a `jf` task and trace whether it runs on the controller or remote worker. Reproduce with a Linux controller and Windows Server 2022 worker; done when the worker's workspace-temp `.jfrog` directory is deleted and controller paths are untouched.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devops, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100