Skip to content

Commit 42430d9

Browse files
committed
Updated java version to 24 and set path. Increased build pipeline timeout.
1 parent 19fbe66 commit 42430d9

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

devops.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ resource "oci_devops_build_pipeline_stage" "repo_build_pipeline_stage" {
138138
image = var.devops_pipeline_image
139139
is_pass_all_parameters_enabled = false
140140
primary_build_source = oci_devops_repository.config_repo[0].name
141-
stage_execution_timeout_in_seconds = 300
141+
stage_execution_timeout_in_seconds = 3000
142142
count = local.use-repository ? 1 : 0
143143
}
144144

@@ -173,7 +173,7 @@ resource "oci_devops_build_pipeline_stage" "art_build_pipeline_stage" {
173173
image = var.devops_pipeline_image
174174
is_pass_all_parameters_enabled = false
175175
primary_build_source = oci_devops_repository.config_repo[0].name
176-
stage_execution_timeout_in_seconds = 300
176+
stage_execution_timeout_in_seconds = 3000
177177
count = local.use-artifact ? 1 : 0
178178
}
179179

java/build-repo.yaml.template

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,38 @@ component: build
77
timeoutInSeconds: 3600
88
shell: bash
99
env:
10+
variables:
11+
JAVA_HOME : "/usr/java/latest"
1012
vaultVariables:
1113
DB_USER_PASSWORD : "${db_user_password}"
1214
WALLET_PASSWORD : "${wallet_password}"
1315
steps:
16+
- type: Command
17+
name: Install Java
18+
timeoutInSeconds: 600
19+
failImmediatelyOnError: true
20+
command: |
21+
dnf install -y jdk-24-headful --enablerepo=ol8_oci_included
22+
export PATH=$JAVA_HOME/bin:$PATH
23+
onFailure:
24+
- type: Command
25+
command: |
26+
echo $JAVA_HOME
27+
timeoutInSeconds: 400
28+
- type: Command
29+
name: Install Gradle
30+
timeoutInSeconds: 600
31+
failImmediatelyOnError: true
32+
command: |
33+
curl -o gradle-8.5-bin.zip "https://services.gradle.org/distributions/gradle-8.5-bin.zip" -L
34+
mkdir /opt/gradle
35+
unzip -d /opt/gradle gradle-8.5-bin.zip
36+
export PATH=/opt/gradle/gradle-8.5/bin:$PATH
37+
onFailure:
38+
- type: Command
39+
command: |
40+
ls
41+
timeoutInSeconds: 400
1442
- type: Command
1543
name: Build application
1644
timeoutInSeconds: 600

0 commit comments

Comments
 (0)