kubesphere / kubesphere/ks-devops

Use the new API of the pipeline artifacts

Open
#639 4 comments 0 reactions 0 assignees View on GitHub
area/console area/devops good first issue help wanted kind/feature
Dominant language
Go
Stars
164
Forks
140
PR merge metrics
No merged PRs in 30d

Description

**What would you like to be added**:

Change the API calling of pipeline artifacts from:

`/kapis/devops.kubesphere.io/v1alpha2/jenkins/job/cly-devops7846x/job/test-pipeline/2/artifact/target/devops-sample-0.0.1-SNAPSHOT.jar` to

`GET /kapis/devops.kubesphere.io/v1alpha2/pipelineruns/demo-artifact-tt85n/artifacts?filePath=xxx.log`

**Why is this needed**:
See the details of the background from https://github.com/kubesphere/ks-devops/issues/449

The upstream issue is https://github.com/kubesphere/ks-devops/issues/449

## References
* https://github.com/kubesphere/ks-devops/issues/449

/area devops
/good-first-issue

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing pipeline-artifact API call in the ks-devops codebase and read the background in upstream issue 449. Update the call to use the pipelineruns artifacts endpoint described here, then verify that pipeline artifact retrieval still works with the new filePath query parameter.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
api, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.