jenkinsci / jenkinsci/jfrog-plugin

Plugin should auto-clean the @tmp/jfrog directory

Open
#58 0 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Java
Stars
16
Forks
85
PR merge metrics
No merged PRs in 30d

Description

### Is your feature request related to a problem? Please describe.

Intermittently, our pipelines running `jf rt build-publish` via the Jenkins JFrog plugin failed with `cipher: message authentication failure` or `401, Token failed verification: parse` errors.

The issue stemmed from two pipelines sharing a single workspace to speed up incremental builds. Occasionally, they reused an old `@tmp/jfrog/` configuration from a previous run. Because the Jenkins JFrog plugin never auto-cleans the `@tmp/jfrog` directory, these stale configurations caused the build-publish command to fail. If the plugin automatically cleaned this directory, the issue wouldn’t occur.

### Describe the solution you'd like to see

The Jenkins JFrog plugin should automatically clean up old `@tmp/jfrog` configurations after builds, or provide a configurable option to do so. This would prevent stale configuration reuse and eliminate related authentication errors.

### Describe alternatives you've considered

We implemented a custom post-cleanup step in each pipeline that automatically removes the `@tmp/jfrog` directory after each run of a pipeline that uses the Jenkins JFrog plugin.

We also considered using the `hudson.model.WorkspaceCleanupThread` system property, but it doesn’t support per-run cleanup, so it wasn’t a viable option.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the Jenkins JFrog plugin path that runs `jf rt build-publish` and creates configuration under the workspace `@tmp/jfrog/` directory. Check how per-run cleanup could occur after builds and verify that stale configurations are removed without disrupting shared-workspace builds; the issue names no source files or tests, so repository exploration is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.