[Asterisk-code-review] CI: Mount a tmpfs on /tmp for testsuite docker containers (asterisk[13])

Jenkins2 asteriskteam at digium.com
Sat Nov 17 15:42:45 CST 2018


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/10673 )

Change subject: CI:  Mount a tmpfs on /tmp for testsuite docker containers
......................................................................

CI:  Mount a tmpfs on /tmp for testsuite docker containers

Change-Id: I0566d81b0852f22066cd76d58eae5f1fda5602aa
---
M tests/CI/gates.jenkinsfile
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Jenkins2: Looks good to me, approved; Approved for Submit



diff --git a/tests/CI/gates.jenkinsfile b/tests/CI/gates.jenkinsfile
index 7be5768..1839a8b 100644
--- a/tests/CI/gates.jenkinsfile
+++ b/tests/CI/gates.jenkinsfile
@@ -129,8 +129,9 @@
 					def r = currentBuild.startTimeInMillis % images.length
 					def ri = images[(int)r]
 					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 " +
-						" -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=''"
 					def bt = env.BUILD_TAG.replaceAll(/[^a-zA-Z0-9_.-]/, '-')
 					def outputdir = "tests/CI/output/Testsuite"
@@ -197,7 +198,7 @@
 										]
 									}
 
-									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,
 										artifacts: "${groupDir}/asterisk-test-suite-report.xml, ${groupDir}/logs/**, ${groupDir}/core*.txt"

-- 
To view, visit https://gerrit.asterisk.org/10673
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: I0566d81b0852f22066cd76d58eae5f1fda5602aa
Gerrit-Change-Number: 10673
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2 (1000185)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181117/feba9f82/attachment.html>


More information about the asterisk-code-review mailing list