mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
CI: Mount a tmpfs on /tmp for testsuite docker containers
Change-Id: I0566d81b0852f22066cd76d58eae5f1fda5602aa
This commit is contained in:
@@ -129,8 +129,9 @@ pipeline {
|
|||||||
def r = currentBuild.startTimeInMillis % images.length
|
def r = currentBuild.startTimeInMillis % images.length
|
||||||
def ri = images[(int)r]
|
def ri = images[(int)r]
|
||||||
def randomImage = env.DOCKER_REGISTRY + "/" + ri
|
def randomImage = env.DOCKER_REGISTRY + "/" + ri
|
||||||
|
/* FYI... Jenkins takes care of mouting the workspace for the container */
|
||||||
def dockerOptions = "--privileged --ulimit core=0 --ulimit nofile=10240 " +
|
def dockerOptions = "--privileged --ulimit core=0 --ulimit nofile=10240 " +
|
||||||
" -v /srv/jenkins:/srv/jenkins:rw -v /srv/cache:/srv/cache:rw " +
|
" --mount type=tmpfs,tmpfs-size=1g,dst=/tmp -v /srv/jenkins:/srv/jenkins:rw -v /srv/cache:/srv/cache:rw " +
|
||||||
" --entrypoint=''"
|
" --entrypoint=''"
|
||||||
def bt = env.BUILD_TAG.replaceAll(/[^a-zA-Z0-9_.-]/, '-')
|
def bt = env.BUILD_TAG.replaceAll(/[^a-zA-Z0-9_.-]/, '-')
|
||||||
def outputdir = "tests/CI/output/Testsuite"
|
def outputdir = "tests/CI/output/Testsuite"
|
||||||
@@ -197,7 +198,7 @@ pipeline {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
sh "sudo tests/CI/runTestsuite.sh --work-dir='${groupDir}/astroot' --testsuite-dir='${groupDir}' --testsuite-command='${groupTestcmd}'"
|
sh "sudo tests/CI/runTestsuite.sh --testsuite-dir='${groupDir}' --testsuite-command='${groupTestcmd}'"
|
||||||
|
|
||||||
archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: true,
|
archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: true,
|
||||||
artifacts: "${groupDir}/asterisk-test-suite-report.xml, ${groupDir}/logs/**, ${groupDir}/core*.txt"
|
artifacts: "${groupDir}/asterisk-test-suite-report.xml, ${groupDir}/logs/**, ${groupDir}/core*.txt"
|
||||||
|
Reference in New Issue
Block a user