Package org.jfrog.build.api.builder.dependency

Examples of org.jfrog.build.api.builder.dependency.BuildPatternArtifactsRequestBuilder


*/
public class BuildPatternArtifactsRequestSerializationTest {

    @Test
    public void testBuildOutputsRequestSerialisation() throws Exception {
        BuildPatternArtifactsRequest request = new BuildPatternArtifactsRequestBuilder().buildName("foo").buildNumber("LATEST")
                .pattern("*:dir/*/bob/**/*.zip").pattern("*:**/*.*;status+=prod").build();

        String requstJson = new JsonSerializer<BuildPatternArtifactsRequest>().toJSON(request);
        System.out.println("requstJson = " + requstJson);
    }
View Full Code Here


        List<BuildPatternArtifactsRequest> artifactsRequests = Lists.newLinkedList();
        for (String buildName : dependencyPatterns.keySet()) {
            Map<String, List<BuildDependencyPattern>> buildNumbers = dependencyPatterns.get(buildName);
            for (String buildNumber : buildNumbers.keySet()) {
                List<BuildDependencyPattern> buildDependencyPatterns = buildNumbers.get(buildNumber);
                BuildPatternArtifactsRequestBuilder builder = new BuildPatternArtifactsRequestBuilder()
                        .buildName(buildName).buildNumber(buildNumber);
                for (BuildDependencyPattern buildDependencyPattern : buildDependencyPatterns) {
                    builder.pattern(buildDependencyPattern.getPattern());
                }
                artifactsRequests.add(builder.build());
            }
        }

        return artifactsRequests;
    }
View Full Code Here

TOP

Related Classes of org.jfrog.build.api.builder.dependency.BuildPatternArtifactsRequestBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.