* @return RestAdapter
*/
protected RestAdapter buildRestAdapter() {
if (restAdapter == null) {
RestAdapter.Builder builder = new RestAdapter.Builder().setEndpoint(server)
.setConverter(new GsonConverter(JenkinsHelper.getGsonBuilder().create()));
// if available, send mUsername and password in header
builder.setRequestInterceptor(new RequestInterceptor() {
@Override
public void intercept(RequestFacade requestFacade) {