golang实现jenkins rest api rebuildwithparameters功能
直接上代码:
package main
import (
"encoding/json"
"fmt"
"github.com/tidwall/gjson"
"io/ioutil"
"net/http"
"strings"
)
type BaseInfo struct {
Baseurl string
Username string
Password string
}
func getparas(jobname string, info *BaseInfo) map[string]
原创
2021-05-11 19:44:20 ·
420 阅读 ·
0 评论