8000 Feature/jenkins pipeline (#3262) · MohammedDeveloper/arangodb@02014da · GitHub
[go: up one dir, main page]

Skip to content

Commit 02014da

Browse files
authored
Feature/jenkins pipeline (arangodb#3262)
* raised timeout for mac * echo error message * fixed typo in skipNonDeterministic => skipNondeterministic
1 parent 0faf9be commit 02014da

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

Installation/Pipeline/Jenkinsfile.groovy

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ def executeTests(os, edition, maintainer, mode, engine, portInit, archDir, arch,
669669
"--configDir etc/jenkins " +
670670
"--skipLogAnalysis true " +
671671
"--skipTimeCritical true " +
672-
"--skipNonDeterministic true " +
672+
"--skipNondeterministic true " +
673673
"--storageEngine ${engine} " +
674674
testStruct[2]
675675

@@ -704,7 +704,7 @@ def executeTests(os, edition, maintainer, mode, engine, portInit, archDir, arch,
704704
// even if the features are green this is completely broken performance wise..
705705
// DO NOT INCREASE!!
706706

707-
timeout(30) {
707+
timeout(os == 'linux' ? 30 : 60) {
708708
def tmpDir = pwd() + "/" + runDir + "/tmp"
709709

710710
withEnv(["TMPDIR=${tmpDir}", "TEMPDIR=${tmpDir}", "TMP=${tmpDir}"]) {
@@ -726,13 +726,21 @@ def executeTests(os, edition, maintainer, mode, engine, portInit, archDir, arch,
726726
}
727727
}
728728
catch (exc) {
729-
echo "caught error, copying log to ${logFileFailed}"
730-
echo exc.toString()
729+
def msg = exc.toString()
730+
731+
echo "caught error, copying log to ${logFileFailed}: ${msg}"
731732

732733
fileOperations([
733-
fileCreateOperation(fileContent: 'TEST FAILED', fileName: "${archDir}-FAIL.txt")
734+
fileCreateOperation(fileContent: 'TEST FAILED: ${msg}', fileName: "${archDir}-FAIL.txt")
734735
])
735736

737+
if (os == 'linux' || os == 'mac') {
738+
sh "echo \"${msg}\" >> ${logFile}"
739+
}
740+
else {
741+
powershell "echo \"${msg}\" | Out-File -filepath ${logFile} -append"
742+
}
743+
736744
copyFile(os, logFile, logFileFailed)
737745
throw exc
738746
}
@@ -1020,10 +1028,19 @@ def buildEdition(os, edition, maintainer) {
10201028
}
10211029
}
10221030
catch (exc) {
1031+
def msg = exc.toString()
1032+
10231033
fileOperations([
1024-
fileCreateOperation(fileContent: 'BUILD FAILED', fileName: "${archDir}-FAIL.txt")
1034+
fileCreateOperation(fileContent: 'BUILD FAILED: ${msg}', fileName: "${archDir}-FAIL.txt")
10251035
])
10261036

1037+
if (os == 'linux' || os == 'mac') {
1038+
sh "echo \"${msg}\" >> ${logFile}"
1039+
}
1040+
else {
1041+
powershell "echo \"${msg}\" | Out-File -filepath ${logFile} -append"
1042+
}
1043+
10271044
renameFolder(arch, archFail)
10281045
throw exc
10291046
}

0 commit comments

Comments
 (0)
0