kubesphere / kubesphere/ks-devops

refactor jenkins client hard code

Open
#220 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
164
Forks
140
PR merge metrics
No merged PRs in 30d

Description

- refactor jenkins client PostForm method
https://github.com/kubesphere/ks-devops/blob/5c93d492e244f4b1c909eadd068ea0f8ab43a703/pkg/client/devops/jenkins/request.go#L113
- implementation
jenkins client add some new method for `pipeline-model-converter` plugin,eg: ```jenkins.validateJenkinsfile(string) ```。hide url for the caller

Contributor guide

Open the contributing guide

Research direction

Start in pkg/client/devops/jenkins/request.go at the PostForm method around line 113, then review the requested pipeline-model-converter integration. Define the client methods needed for operations such as validateJenkinsfile(string) while hiding the URL from callers; done means the refactored client supports these methods without callers constructing the URL directly.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, devops
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 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.