Skip to content

Commit 814451c

Browse files
committed
[Build] Add V-Build for testing JDT's development for Java Value Objects
Fixes #3818
1 parent bea047b commit 814451c

4 files changed

Lines changed: 67 additions & 2 deletions

File tree

JenkinsJobs/Builds/build.jenkinsfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,12 @@ pipeline {
5959
script {
6060
utilities = load 'JenkinsJobs/shared/utilities.groovy'
6161

62-
def job = utilities.matchPattern('Job name', "${JOB_BASE_NAME}", [ /(?<type>[IY])-build-(?<major>\d).(?<minor>\d+)/ ])
62+
def job = utilities.matchPattern('Job name', "${JOB_BASE_NAME}", [ /(?<type>[A-Z])-build-(?<major>\d).(?<minor>\d+)/ ])
6363
// Load build properties and configuration from the properties and configuration file
6464
BUILD = readJSON(file: 'JenkinsJobs/buildConfigurations.json')[job.type]
65+
if (BUILD == null) {
66+
error "Unsupported build type: ${job.type}"
67+
}
6568

6669
def int jobStart = currentBuild.startTimeInMillis.intdiv(1000)
6770
BUILD_PROPERTIES.TIMESTAMP = sh(script: "TZ='America/New_York' date +%Y%m%d-%H%M --date='@${jobStart}'", returnStdout: true).trim()

JenkinsJobs/buildConfigurations.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,66 @@
139139
}
140140
}
141141
]
142+
},
143+
"V": {
144+
"typeName": "Java Value Objects development",
145+
"folder": "VBuilds",
146+
"streams": {
147+
"4.40": {
148+
"branch": "master",
149+
"schedule": ""
150+
}
151+
},
152+
"branches": {
153+
"eclipse.jdt.core": "VALCO_PDOT_1"
154+
},
155+
"mailingList": "jdt-dev@eclipse.org",
156+
"testsFolder": "VBuilds",
157+
"tests": [
158+
{
159+
"os": "linux",
160+
"ws": "gtk",
161+
"arch": "x86_64",
162+
"javaVersion": 21,
163+
"agent": "ubuntu-2404",
164+
"jdk": {
165+
"type": "tool",
166+
"name": "temurin-jdk21-latest"
167+
}
168+
},
169+
{
170+
"os": "linux",
171+
"ws": "gtk",
172+
"arch": "x86_64",
173+
"javaVersion": 27,
174+
"agent": "ubuntu-2404",
175+
"jdk": {
176+
"type": "install",
177+
"url": "https://download.java.net/java/early_access/valhalla/27/1/openjdk-27-jep401ea3+1-1_linux-x64_bin.tar.gz"
178+
}
179+
},
180+
{
181+
"os": "macosx",
182+
"ws": "cocoa",
183+
"arch": "aarch64",
184+
"javaVersion": 27,
185+
"agent": "nc1ht-macos26-arm64",
186+
"jdk": {
187+
"type": "install",
188+
"url": "https://download.java.net/java/early_access/valhalla/27/1/openjdk-27-jep401ea3+1-1_macos-aarch64_bin.tar.gz"
189+
}
190+
},
191+
{
192+
"os": "win32",
193+
"ws": "win32",
194+
"arch": "x86_64",
195+
"javaVersion": 27,
196+
"agent": "qa6xd-win11",
197+
"jdk": {
198+
"type": "install",
199+
"url": "https://download.java.net/java/early_access/valhalla/27/1/openjdk-27-jep401ea3+1-1_windows-x64_bin.zip"
200+
}
201+
}
202+
]
142203
}
143204
}

JenkinsJobs/seedJob.jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ pipeline {
2020
'AutomatedTests': [ displayName: 'Automated Tests', description: 'Folder for Unit Tests'],
2121
'Builds': [description: 'Eclipse periodic build jobs.'],
2222
'YBuilds': [displayName: 'Y Builds', description: 'Builds and tests for the beta java builds.'],
23+
'VBuilds': [displayName: 'V Builds', description: 'Builds and tests for the Java Value Objects development builds.'],
2324
'Cleanup': [description: 'Cleanup Scripts.'],
2425
'Releng': [description: 'Jobs related to routine releng tasks. Some are periodic, some are "manual" jobs ran only when needed.'],
2526
]

scripts/releng/BuildDropDataGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ JSON.Object createFileDescription(Path file, FileInfo fileInfo) {
255255
return fileEntry;
256256
}
257257

258-
final Pattern INTEGRATION_BUILD_ID = Pattern.compile("(I|Y)(?<date>\\d{8})-(?<time>\\d{4})");
258+
final Pattern INTEGRATION_BUILD_ID = Pattern.compile("[A-Z](?<date>\\d{8})-(?<time>\\d{4})");
259259
final ZoneId BUILD_TIMEZONE = ZoneId.of("America/New_York");
260260
final DateTimeFormatter BASIC_LOCAL_TIME = DateTimeFormatter.ofPattern("HHmm");
261261

0 commit comments

Comments
 (0)