--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
return new BuildStrategyBuilder() .withType("Source") .withNewSourceStrategy() .withNewFrom() .withKind(fromKind) .withName(fromName) .withNamespace(StringUtils.isEmpty(fromNamespace) ? null : fromNamespace) .endFrom() .endSourceStrategy() .build();
source: type: Binary binary: {} strategy: type: Source sourceStrategy: from: kind: DockerImage name: redhat-openjdk-18/openjdk18-openshift env: - name: ARTIFACT_COPY_ARGS value: '*.war'
--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
List<EnvVar> ret = new ArrayList<>(); Map<String, EnvVar> envMap = convertToEnvVarMap(imageConfig.getBuildConfiguration().getEnv()); ret.addAll(envMap.values());
return new BuildStrategyBuilder() .withType("Source") .withNewSourceStrategy() .withNewFrom() .withKind(fromKind) .withName(fromName) .withNamespace(StringUtils.isEmpty(fromNamespace) ? null : fromNamespace) .endFrom()
.addAllToEnv(ret) // WHERE ENV VAR WILL BE PASSED .endSourceStrategy() .build();
<images> <image> <name>${project.artifactId}:%t</name> <alias>spring-boot-mvc-jsp</alias> <build> <from>redhat-openjdk-18/openjdk18-openshift</from> <assembly> <basedir>/deployments</basedir> <descriptorRef>artifact</descriptorRef> </assembly> <env> <ARTIFACT_COPY_ARGS>*.war</ARTIFACT_COPY_ARGS>
<buildConfig> <sourceStrategy> <env> <ARTIFACT_COPY_ARGS>*.war</ARTIFACT_COPY_ARGS> ...
spec: strategy: sourceStrategy:
env: - name: ARTIFACT_COPY_ARGS value: '*.war'