Skip to content

Commit 3869485

Browse files
committed
Update settings.xml generation naming. Remove old code. Update script branches
1 parent 5ea887b commit 3869485

File tree

3 files changed

+26
-10
lines changed

3 files changed

+26
-10
lines changed

java-components/build-request-processor/src/main/java/com/redhat/hacbs/container/build/preprocessor/AbstractPreprocessor.java

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ private String getMavenSetup() {
222222
<settings>
223223
<mirrors>
224224
<mirror>
225-
<id>mirror.default</id>
225+
<id>indy-mvn</id>
226226
<url>${PROXY_URL}</url>
227227
<mirrorOf>*</mirrorOf>
228228
</mirror>
@@ -237,7 +237,7 @@ private String getMavenSetup() {
237237
<!-- Allows a secondary Maven build to use results of prior (e.g. Gradle) deployment -->
238238
<profiles>
239239
<profile>
240-
<id>alternate</id>
240+
<id>secondary</id>
241241
<activation>
242242
<activeByDefault>true</activeByDefault>
243243
</activation>
@@ -263,7 +263,7 @@ private String getMavenSetup() {
263263
</pluginRepositories>
264264
</profile>
265265
<profile>
266-
<id>deployment</id>
266+
<id>local-deployment</id>
267267
<activation>
268268
<activeByDefault>true</activeByDefault>
269269
</activation>
@@ -281,6 +281,25 @@ private String getMavenSetup() {
281281
// This block is only needed when running outside of JBS
282282
if (isEmpty(System.getenv("jvm-build-service"))) {
283283
result += """
284+
<!--
285+
Needed for Maven 3.9+. Switched to native resolver
286+
https://maven.apache.org/guides/mini/guide-resolver-transport.html
287+
-->
288+
<servers>
289+
<server>
290+
<id>indy-mvn</id>
291+
<configuration>
292+
<connectionTimeout>60000</connectionTimeout>
293+
<httpHeaders>
294+
<property>
295+
<name>Authorization</name>
296+
<value>Bearer ${accessToken}</value>
297+
</property>
298+
</httpHeaders>
299+
</configuration>
300+
</server>
301+
</servers>
302+
284303
<proxies>
285304
<proxy>
286305
<id>indy-http</id>
@@ -291,7 +310,7 @@ private String getMavenSetup() {
291310
<!-- <username>build-ADDTW3JAGHYAA+tracking</username> -->
292311
<username>${BUILD_ID}+tracking</username>
293312
<password>${MVN_TOKEN}</password>
294-
<nonProxyHosts>indy|localhost</nonProxyHosts>
313+
<nonProxyHosts>${PROXY_URL}|localhost</nonProxyHosts>
295314
</proxy>
296315
<proxy>
297316
<id>indy-https</id>
@@ -301,7 +320,7 @@ private String getMavenSetup() {
301320
<port>80</port>
302321
<username>${BUILD_ID}+tracking</username>
303322
<password>${MVN_TOKEN}</password>
304-
<nonProxyHosts>indy|localhost</nonProxyHosts>
323+
<nonProxyHosts>${PROXY_URL}|localhost</nonProxyHosts>
305324
</proxy>
306325
</proxies>
307326
""";

pkg/apis/jvmbuildservice/v1alpha1/systemconfig_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type SystemConfigList struct {
4747

4848
const (
4949
KonfluxGitDefinition = "https://raw.githubusercontent.com/konflux-ci/build-definitions/refs/heads/main/task/git-clone/0.1/git-clone.yaml"
50-
KonfluxPreBuildDefinitions = "https://raw.githubusercontent.com/rnc/jvm-build-service/SCRIPTS/deploy/tasks/pre-build.yaml"
50+
KonfluxPreBuildDefinitions = "https://raw.githubusercontent.com/redhat-appstudio/jvm-build-service/main/deploy/tasks/pre-build.yaml"
5151
KonfluxBuildDefinitions = "https://raw.githubusercontent.com/konflux-ci/build-definitions/refs/heads/main/task/buildah-oci-ta/0.2/buildah-oci-ta.yaml"
5252
KonfluxMavenDeployDefinitions = "https://raw.githubusercontent.com/redhat-appstudio/jvm-build-service/main/deploy/tasks/maven-deployment.yaml"
5353
)

pkg/reconciler/dependencybuild/dependencybuild.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ const (
7373
MemoryIncrement = 2048
7474

7575
PipelineRunFinalizer = "jvmbuildservice.io/finalizer"
76-
JavaHome = "JAVA_HOME"
7776
DeploySuffix = "-deploy"
7877
)
7978

@@ -468,9 +467,7 @@ func (r *ReconcileDependencyBuild) processBuilderImages(ctx context.Context) ([]
468467
if err != nil {
469468
return nil, err
470469
}
471-
//TODO how important is the order here? do we want 11,8,17 per the old form at https://github.com/redhat-appstudio/jvm-build-service/blob/b91ec6e1888e43962cba16fcaee94e0c9f64557d/deploy/operator/config/system-config.yaml#L8
472-
// the unit tests's imaage verification certainly assumes a order
473-
result := []BuilderImage{}
470+
result := make([]BuilderImage, 0)
474471
for _, val := range systemConfig.Spec.Builders {
475472
result = append(result, BuilderImage{
476473
Image: val.Image,

0 commit comments

Comments
 (0)