Search in sources :

Example 91 with Pipeline

use of com.thoughtworks.go.domain.Pipeline in project gocd by gocd.

the class PipelineWithRunOnAllJob method createPipelineWithFirstStagePassedAndSecondStageHasNotStarted.

public Pipeline createPipelineWithFirstStagePassedAndSecondStageHasNotStarted() {
    Pipeline pipeline = createPipelineWithFirstStageScheduled();
    dbHelper.passStage(pipeline.getFirstStage());
    return pipeline;
}
Also used : Pipeline(com.thoughtworks.go.domain.Pipeline)

Example 92 with Pipeline

use of com.thoughtworks.go.domain.Pipeline in project gocd by gocd.

the class PipelineWithRunOnAllJob method createdPipelineWithAllStagesCompleted.

public Pipeline createdPipelineWithAllStagesCompleted(JobResult result) {
    Pipeline pipeline = createPipelineWithFirstStagePassedAndSecondStageHasNotStarted();
    scheduleAndCompleteFollowingStages(pipeline, result);
    return latestPipelineWithIdentifiers();
}
Also used : Pipeline(com.thoughtworks.go.domain.Pipeline)

Example 93 with Pipeline

use of com.thoughtworks.go.domain.Pipeline in project gocd by gocd.

the class PipelineWithTwoStages method createPipelineWithFirstStageScheduled.

public Pipeline createPipelineWithFirstStageScheduled(MaterialRevisions materialRevisions) {
    Pipeline pipeline = schedulePipeline(BuildCause.createWithModifications(materialRevisions, ""));
    dbHelper.save(pipeline);
    return pipeline;
}
Also used : Pipeline(com.thoughtworks.go.domain.Pipeline)

Example 94 with Pipeline

use of com.thoughtworks.go.domain.Pipeline in project gocd by gocd.

the class PipelineWithTwoStages method createdPipelineWithAllStagesCompleted.

public Pipeline createdPipelineWithAllStagesCompleted(JobResult result) {
    Pipeline pipeline = createPipelineWithFirstStagePassedAndSecondStageHasNotStarted();
    scheduleAndCompleteFollowingStages(pipeline, result);
    return latestPipelineWithIdentifiers();
}
Also used : Pipeline(com.thoughtworks.go.domain.Pipeline)

Example 95 with Pipeline

use of com.thoughtworks.go.domain.Pipeline in project gocd by gocd.

the class PipelineWithTwoStages method createPipelineWithFirstStagePassedAndSecondStageHasNotStarted.

public Pipeline createPipelineWithFirstStagePassedAndSecondStageHasNotStarted() {
    Pipeline pipeline = createPipelineWithFirstStageScheduled();
    dbHelper.passStage(pipeline.getFirstStage());
    return pipeline;
}
Also used : Pipeline(com.thoughtworks.go.domain.Pipeline)

Aggregations

Pipeline (com.thoughtworks.go.domain.Pipeline)184 Test (org.junit.Test)122 Stage (com.thoughtworks.go.domain.Stage)33 Username (com.thoughtworks.go.server.domain.Username)30 MaterialRevision (com.thoughtworks.go.domain.MaterialRevision)29 CaseInsensitiveString (com.thoughtworks.go.config.CaseInsensitiveString)24 HttpLocalizedOperationResult (com.thoughtworks.go.server.service.result.HttpLocalizedOperationResult)24 PipelineMaterialRevision (com.thoughtworks.go.domain.PipelineMaterialRevision)21 MaterialRevisions (com.thoughtworks.go.domain.MaterialRevisions)20 JobInstance (com.thoughtworks.go.domain.JobInstance)19 PipelineConfig (com.thoughtworks.go.config.PipelineConfig)13 JobIdentifier (com.thoughtworks.go.domain.JobIdentifier)13 Modification (com.thoughtworks.go.domain.materials.Modification)13 ServerHealthStateOperationResult (com.thoughtworks.go.server.service.result.ServerHealthStateOperationResult)13 Date (java.util.Date)13 DependencyMaterial (com.thoughtworks.go.config.materials.dependency.DependencyMaterial)11 StageIdentifier (com.thoughtworks.go.domain.StageIdentifier)10 DependencyMaterialConfig (com.thoughtworks.go.config.materials.dependency.DependencyMaterialConfig)8 PipelineConfigDependencyGraph (com.thoughtworks.go.server.domain.PipelineConfigDependencyGraph)7 PipelineState (com.thoughtworks.go.domain.PipelineState)6