Search in sources :

Example 1 with GitCommit

use of com.yahoo.vespa.hosted.controller.api.identifiers.GitCommit in project vespa by vespa-engine.

the class ControllerTester method deploy.

public void deploy(Application application, ZoneId zone, Optional<ApplicationPackage> applicationPackage, boolean deployCurrentVersion) {
    ScrewdriverId app1ScrewdriverId = new ScrewdriverId(String.valueOf(application.deploymentJobs().projectId().get()));
    GitRevision app1RevisionId = new GitRevision(new GitRepository("repo"), new GitBranch("master"), new GitCommit("commit1"));
    controller().applications().deployApplication(application.id(), zone, applicationPackage, new DeployOptions(Optional.of(new ScrewdriverBuildJob(app1ScrewdriverId, app1RevisionId)), Optional.empty(), false, deployCurrentVersion));
}
Also used : DeployOptions(com.yahoo.vespa.hosted.controller.api.application.v4.model.DeployOptions) ScrewdriverId(com.yahoo.vespa.hosted.controller.api.identifiers.ScrewdriverId) GitRepository(com.yahoo.vespa.hosted.controller.api.identifiers.GitRepository) GitRevision(com.yahoo.vespa.hosted.controller.api.application.v4.model.GitRevision) GitCommit(com.yahoo.vespa.hosted.controller.api.identifiers.GitCommit) GitBranch(com.yahoo.vespa.hosted.controller.api.identifiers.GitBranch) ScrewdriverBuildJob(com.yahoo.vespa.hosted.controller.api.application.v4.model.ScrewdriverBuildJob)

Example 2 with GitCommit

use of com.yahoo.vespa.hosted.controller.api.identifiers.GitCommit in project vespa by vespa-engine.

the class ContainerControllerTester method deploy.

public Application deploy(Application application, ApplicationPackage applicationPackage, ZoneId zone, long projectId) {
    ScrewdriverId app1ScrewdriverId = new ScrewdriverId(String.valueOf(projectId));
    GitRevision app1RevisionId = new GitRevision(new GitRepository("repo"), new GitBranch("master"), new GitCommit("commit1"));
    controller().applications().deployApplication(application.id(), zone, Optional.of(applicationPackage), new DeployOptions(Optional.of(new ScrewdriverBuildJob(app1ScrewdriverId, app1RevisionId)), Optional.empty(), false, false));
    return application;
}
Also used : DeployOptions(com.yahoo.vespa.hosted.controller.api.application.v4.model.DeployOptions) ScrewdriverId(com.yahoo.vespa.hosted.controller.api.identifiers.ScrewdriverId) GitRepository(com.yahoo.vespa.hosted.controller.api.identifiers.GitRepository) GitRevision(com.yahoo.vespa.hosted.controller.api.application.v4.model.GitRevision) GitCommit(com.yahoo.vespa.hosted.controller.api.identifiers.GitCommit) GitBranch(com.yahoo.vespa.hosted.controller.api.identifiers.GitBranch) ScrewdriverBuildJob(com.yahoo.vespa.hosted.controller.api.application.v4.model.ScrewdriverBuildJob)

Aggregations

DeployOptions (com.yahoo.vespa.hosted.controller.api.application.v4.model.DeployOptions)2 GitRevision (com.yahoo.vespa.hosted.controller.api.application.v4.model.GitRevision)2 ScrewdriverBuildJob (com.yahoo.vespa.hosted.controller.api.application.v4.model.ScrewdriverBuildJob)2 GitBranch (com.yahoo.vespa.hosted.controller.api.identifiers.GitBranch)2 GitCommit (com.yahoo.vespa.hosted.controller.api.identifiers.GitCommit)2 GitRepository (com.yahoo.vespa.hosted.controller.api.identifiers.GitRepository)2 ScrewdriverId (com.yahoo.vespa.hosted.controller.api.identifiers.ScrewdriverId)2