AbLocalBuildProvider

public class AbLocalBuildProvider
extends StubBuildProvider implements IInvocationContextReceiver

java.lang.Object
com.android.tradefed.build.StubBuildProvider
  com.google.android.tradefed.build.AbLocalBuildProvider


Trình cung cấp bản dựng cục bộ tạo bản dựng cục bộ trên bản dựng Android. LƯU Ý: Cập nhật trình cung cấp này để cũng có thể khởi động thông tin bản dựng thiết bị.

Tóm tắt

Hằng số

String LOCAL_BUILD

Hàm khởi tạo công khai

AbLocalBuildProvider()

Phương thức công khai

static Build createLocalBuild(IInvocationContext context, String branch, String buildFlavor)

Tạo bản dựng cục bộ trên máy chủ AB từ xa và trả về tham chiếu của bản dựng đó.

IBuildInfo getBuild()

Truy xuất dữ liệu cho bản dựng đang thử nghiệm.

void setInvocationContext(IInvocationContext invocationContext)

Hằng số

LOCAL_BUILD

public static final String LOCAL_BUILD

Giá trị không đổi: "local_build"

Hàm khởi tạo công khai

AbLocalBuildProvider

public AbLocalBuildProvider ()

Phương thức công khai

createLocalBuild

public static Build createLocalBuild (IInvocationContext context, 
                String branch, 
                String buildFlavor)

Tạo bản dựng cục bộ trên máy chủ AB từ xa và trả về tham chiếu của bản dựng đó.

Tham số
context IInvocationContext

branch String

buildFlavor String

Giá trị trả về
Build

Gửi
GeneralSecurityException
IOException

getBuild

public IBuildInfo getBuild ()

Truy xuất dữ liệu cho bản dựng đang thử nghiệm.

Giá trị trả về
IBuildInfo the IBuildInfo cho bản dựng đang thử nghiệm hoặc null nếu không có bản dựng nào để thử nghiệm

Gửi
BuildRetrievalError

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

Tham số
invocationContext IInvocationContext