private void addResourceChanges(Input input, Map<Path, Collection<ResourceChange>> resourceChanges) { resourceChanges.entrySet().forEach(entry -> { input.put(encodeResourceChangePath(entry.getKey()), encodeResourceChanges(entry.getValue())); }); }
/** * @return the Pipeline input for an incremental build for one resource. */ public static Input createIncrementalBuildInput( String rootPathUri, String resourceUri, String buildType ) { Input input = new Input(); input.put( LocalSourceConfig.ROOT_PATH, rootPathUri ); input.put( LocalBuildConfig.RESOURCE, resourceUri ); input.put( LocalBuildConfig.BUILD_TYPE, buildType ); return input; }
private void setId(final String executionId) { this.executionId = executionId; getTaskDef().getInput().put(PIPELINE_EXECUTION_ID, executionId); }
private void setId(final String executionId) { this.executionId = executionId; getTaskDef().getInput().put(PIPELINE_EXECUTION_ID, executionId); }
/** * @return the Pipeline input for a full build and deploy. */ public static Input createFullBuildAndDeployInput( String rootPathUri, String deploymentType, boolean suppressHandlers ) { Input input = new Input( ); input.put( LocalSourceConfig.ROOT_PATH, rootPathUri ); input.put( LocalBuildConfig.BUILD_TYPE, LocalBuildConfig.BuildType.FULL_BUILD_AND_DEPLOY.name( ) ); input.put( LocalBuildConfig.DEPLOYMENT_TYPE, deploymentType ); input.put( LocalBuildConfig.SUPPRESS_HANDLERS, Boolean.toString( suppressHandlers ) ); return input; }
private Input mockInput(int count) { Input input = new Input(); for (int i = 0; i < count; i++) { input.put("key." + Integer.toString(i), "value." + Integer.toString(i)); } return input; }
private Input mockInput(int count) { Input input = new Input(); for (int i = 0; i < count; i++) { input.put("key." + Integer.toString(i), "value." + Integer.toString(i)); } return input; }
/** * @return the Pipeline input for a project full build. */ public static Input createFullBuildInput( String rootPathUri ) { Input input = new Input(); input.put( LocalSourceConfig.ROOT_PATH, rootPathUri ); input.put( LocalBuildConfig.BUILD_TYPE, LocalBuildConfig.BuildType.FULL_BUILD.name( ) ); return input; }
/** * @return the Pipeline input for a set of batch changes. */ public static Input createBatchChangesInput( String rootPathUri, String buildType, ResourceChangeRequest ... changes ) { Input input = new Input(); input.put( LocalSourceConfig.ROOT_PATH, rootPathUri ); input.put( LocalBuildConfig.BUILD_TYPE, buildType ); for ( ResourceChangeRequest change : changes ) { input.put( LocalBuildConfig.RESOURCE_CHANGE + change.getUri(), change.getChanges() ); } return input; }
input.put(WildflyProviderConfig.WILDFLY_USER, settings.getUsername()); input.put(WildflyProviderConfig.WILDFLY_PASSWORD, settings.getPassword()); input.put(WildflyProviderConfig.HOST, settings.getHost()); input.put(WildflyProviderConfig.MANAGEMENT_PORT, settings.getManagementPort()); input.put(WildflyProviderConfig.PROVIDER_NAME, "WildFly"); input.put(WildflyRuntimeConfiguration.REDEPLOY_STRATEGY, "none"); .buildAs(PIPELINE_NAME); input.put(WildflyRuntimeConfiguration.WAR_PATH, settings.getPath()); } else { .buildAs(PIPELINE_NAME); input.put("artifact", settings.getGAV());
input.put(WildflyProviderConfig.WILDFLY_USER, settings.getUsername()); input.put(WildflyProviderConfig.WILDFLY_PASSWORD, settings.getPassword()); input.put(WildflyProviderConfig.HOST, settings.getHost()); input.put(WildflyProviderConfig.MANAGEMENT_PORT, settings.getManagementPort()); input.put(WildflyProviderConfig.PROVIDER_NAME, "WildFly"); input.put(WildflyRuntimeConfiguration.REDEPLOY_STRATEGY, "none"); .buildAs(PIPELINE_NAME); input.put(WildflyRuntimeConfiguration.WAR_PATH, settings.getPath()); } else { .buildAs(PIPELINE_NAME); input.put("artifact", settings.getGAV());