usage of jenkins api,mainly for json api.