@@ -210,11 +210,6 @@ def checkEnabledEdition(edition, text) {
210
210
}
211
211
212
212
def checkEnabledMaintainer (maintainer , os , text ) {
213
- if (os == ' windows' && maintainer != ' maintainer' ) {
214
- echo " Not ${ text} ${ maintainer} because ${ maintainer} is not enabled under Windows"
215
- return false
216
- }
217
-
218
213
if (maintainer == ' maintainer' && ! useMaintainer) {
219
214
echo " Not ${ text} ${ maintainer} because ${ maintainer} is not enabled"
220
215
return false
@@ -421,18 +416,27 @@ def checkCommitMessages() {
421
416
if (env. BRANCH_NAME == " devel" || env. BRANCH_NAME == " 3.2" ) {
422
417
echo " build of main branch"
423
418
424
- useLinux = true
425
- useMac = true
426
- useWindows = true
427
-
428
- useCommunity = true
429
- useEnterprise = true
430
-
431
- useMaintainer = true
432
- useUser = true
419
+ restrictions = [
420
+ // OS EDITION MAINTAINER
421
+ " build-linux-community-maintainer" : true ,
422
+ " build-linux-enterprise-maintainer" : true ,
423
+ " build-linux-community-user" : true ,
424
+ " build-linux-enterprise-user" : true ,
425
+ " build-mac-community-user" : true ,
426
+ " build-mac-enterprise-user" : true ,
427
+ " build-windows-community-user" : true ,
428
+ " build-windows-enterprise-user" : true ,
433
429
434
- // runResilience = false
435
- runTests = true
430
+ // OS EDITION MAINTAINER MODE ENGINE
431
+ " test-linux-community-maintainer-singleserver-mmfiles" : true ,
432
+ " test-linux-community-maintainer-singleserver-rocksdb" : true ,
433
+ " test-linux-enterprise-user-cluster-mmfiles" : true ,
434
+ " test-linux-enterprise-user-cluster-rocksdb" : true ,
435
+ " test-mac-community-user-singleserver-rocksdb" : true ,
436
+ " test-mac-enterprise-user-cluster-rocksdb" : true ,
437
+ " test-windows-community-user-singleserver-rocksdb" : true ,
438
+ " test-windows-mac-enterprise-user-cluster-rocksdb" : true ,
439
+ ]
436
440
}
437
441
else if (env. BRANCH_NAME =~ / ^PR-/ ) {
438
442
echo " build of PR"
@@ -441,9 +445,7 @@ def checkCommitMessages() {
441
445
// OS EDITION MAINTAINER
442
446
" build-linux-community-maintainer" : true ,
443
447
" build-linux-enterprise-maintainer" : true ,
444
- " build-mac-community-maintainer" : true ,
445
448
" build-mac-enterprise-user" : true ,
446
- " build-windows-community-maintainer" : true ,
447
449
" build-windows-enterprise-maintainer" : true ,
448
450
449
451
// OS EDITION MAINTAINER MODE ENGINE
@@ -633,6 +635,12 @@ def getTests(os, edition, maintainer, mode, engine) {
633
635
[" shell_replication" , " shell_replication" , " " ],
634
636
rspecify(os, " http_replication" )
635
637
]
638
+
639
+ if (maintainer == " maintainer" && os == " linux" ) {
640
+ test + = [
641
+ [" recovery" , " recovery" , " " ]
642
+ ]
643
+ }
636
644
}
637
645
638
646
return tests
@@ -747,7 +755,7 @@ def executeTests(os, edition, maintainer, mode, engine, portInit, archDir, arch,
747
755
echo " caught error, copying log to ${ logFileFailed} : ${ msg} "
748
756
749
757
fileOperations([
750
- fileCreateOperation(fileContent : ' TEST FAILED: ${msg}' , fileName : " ${ archDir} -FAIL.txt" )
758
+ fileCreateOperation(fileContent : " TEST FAILED: ${ msg} " , fileName : " ${ archDir} -FAIL.txt" )
751
759
])
752
760
753
761
if (os == ' linux' || os == ' mac' ) {
@@ -1028,27 +1036,29 @@ def buildEdition(os, edition, maintainer) {
1028
1036
}
1029
1037
}
1030
1038
else if (os == ' windows' ) {
1031
- def tmpDir = " ${ arch} /tmp"
1039
+ // def tmpDir = "${arch}/tmp"
1032
1040
1033
- fileOperations([
1034
- folderCreateOperation(tmpDir)
1035
- ])
1041
+ // fileOperations([
1042
+ // folderCreateOperation(tmpDir)
1043
+ // ])
1036
1044
1037
1045
// withEnv(["TMPDIR=${tmpDir}", "TEMPDIR=${tmpDir}", "TMP=${tmpDir}",
1038
1046
// "_MSPDBSRV_ENDPOINT_=${edition}-${env.BUILD_TAG}", "GYP_USE_SEPARATE_MSPDBSRV=1"]) {
1039
- powershell " . .\\ Installation\\ Pipeline\\ windows\\ build_${ os} _${ edition} .ps1"
1047
+ // powershell ". .\\Installation\\Pipeline\\windows\\build_${os}_${edition}.ps1"
1040
1048
// }
1041
1049
1042
- fileOperations([
1043
- folderDeleteOperation(tmpDir)
1044
- ])
1050
+ // fileOperations([
1051
+ // folderDeleteOperation(tmpDir)
1052
+ // ])
1053
+
1054
+ powershell " . .\\ Installation\\ Pipeline\\ windows\\ build_${ os} _${ edition} _${ maintainer} .ps1"
1045
1055
}
1046
1056
}
1047
1057
catch (exc) {
1048
1058
def msg = exc. toString()
1049
1059
1050
1060
fileOperations([
1051
- fileCreateOperation(fileContent : ' BUILD FAILED: ${msg}' , fileName : " ${ archDir} -FAIL.txt" )
1061
+ fileCreateOperation(fileContent : " BUILD FAILED: ${ msg} " , fileName : " ${ archDir} -FAIL.txt" )
1052
1062
])
1053
1063
1054
1064
if (os == ' linux' || os == ' mac' ) {
0 commit comments