Search in sources :

Example 6 with ArtifactPlan

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

the class ArtifactPlanRepository method saveCopyOf.

public ArtifactPlan saveCopyOf(long jobId, ArtifactPlan artifactPlan) {
    ArtifactPlan copyOfArtifactPlan = new ArtifactPlan(artifactPlan);
    copyOfArtifactPlan.setBuildId(jobId);
    save(copyOfArtifactPlan);
    return copyOfArtifactPlan;
}
Also used : ArtifactPlan(com.thoughtworks.go.domain.ArtifactPlan)

Aggregations

ArtifactPlan (com.thoughtworks.go.domain.ArtifactPlan)6 ArtifactStore (com.thoughtworks.go.config.ArtifactStore)4 PublishArtifactResponse (com.thoughtworks.go.plugin.access.artifact.model.PublishArtifactResponse)2 GoPluginApiRequest (com.thoughtworks.go.plugin.api.request.GoPluginApiRequest)2 HashMap (java.util.HashMap)2 Test (org.junit.jupiter.api.Test)2 PluggableArtifactConfig (com.thoughtworks.go.config.PluggableArtifactConfig)1 MergedTestArtifactPlan (com.thoughtworks.go.domain.MergedTestArtifactPlan)1 EnvironmentVariableContext (com.thoughtworks.go.util.command.EnvironmentVariableContext)1 ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1