Merge pull request #3342 from LinuxSuRen/fix-pip-filter
Fix the Pipeline name filter issues
This commit is contained in:
@@ -132,7 +132,7 @@ func (p *Pipeline) ListPipelines() (*devops.PipelineList, error) {
|
||||
}
|
||||
|
||||
func (p *Pipeline) searchPipelineCount() (int, error) {
|
||||
query, _ := parseJenkinsQuery(p.HttpParameters.Url.RawQuery)
|
||||
query, _ := ParseJenkinsQuery(p.HttpParameters.Url.RawQuery)
|
||||
query.Set("start", "0")
|
||||
query.Set("limit", "1000")
|
||||
query.Set("depth", "-1")
|
||||
@@ -192,7 +192,7 @@ func (p *Pipeline) ListPipelineRuns() (*devops.PipelineRunList, error) {
|
||||
}
|
||||
|
||||
func (p *Pipeline) searchPipelineRunsCount() (int, error) {
|
||||
query, _ := parseJenkinsQuery(p.HttpParameters.Url.RawQuery)
|
||||
query, _ := ParseJenkinsQuery(p.HttpParameters.Url.RawQuery)
|
||||
query.Set("start", "0")
|
||||
query.Set("limit", "1000")
|
||||
query.Set("depth", "-1")
|
||||
|
||||
@@ -72,9 +72,9 @@ func getRespBody(resp *http.Response) ([]byte, error) {
|
||||
|
||||
}
|
||||
|
||||
// parseJenkinsQuery Parse the special query of jenkins.
|
||||
// ParseJenkinsQuery Parse the special query of jenkins.
|
||||
// ParseQuery in the standard library makes the query not re-encode
|
||||
func parseJenkinsQuery(query string) (url.Values, error) {
|
||||
func ParseJenkinsQuery(query string) (url.Values, error) {
|
||||
m := make(url.Values)
|
||||
err := error(nil)
|
||||
for query != "" {
|
||||
|
||||
Reference in New Issue
Block a user