[
{
- "name": "ari_a-d ",
+ "name": "ari1",
"dir": "tests/CI/output/ari1",
"testcmd": "--test-regex=tests/rest_api/[Ca-d]"
},
{
- "name": "ari_e-z ",
+ "name": "ari2",
"dir": "tests/CI/output/ari2",
"testcmd": "--test-regex=tests/rest_api/[e-z]"
},
{
- "name": "pjsip_a-f",
+ "name": "pjs1",
"dir": "tests/CI/output/pjsip1",
"testcmd": "--test-regex=tests/channels/pjsip/[a-f]"
},
{
- "name": "pjsip_g-r",
+ "name": "pjs2",
"dir": "tests/CI/output/pjsip2",
"testcmd": "--test-regex=tests/channels/pjsip/[g-r]"
},
{
- "name": "pjsip_s-z",
+ "name": "pjs3",
"dir": "tests/CI/output/pjsip3",
"testcmd": "--test-regex=tests/channels/pjsip/[s-z]"
},
{
- "name": "sip_a-r ",
+ "name": "sip1",
"dir": "tests/CI/output/sip1",
"testcmd": "--test-regex=tests/channels/SIP/[Sa-r]"
},
{
- "name": "sip_s-z ",
+ "name": "sip2",
"dir": "tests/CI/output/sip2",
"testcmd": "--test-regex=tests/channels/SIP/[s-z]"
},
{
- "name": "iax2_locl",
+ "name": "iax ",
"dir": "tests/CI/output/iax2_local",
"testcmd": " -t tests/channels/iax2 -t tests/channels/local"
},
{
- "name": "pjsip_mwi",
+ "name": "mwi ",
"dir": "tests/CI/output/extmwi",
"testcmd": "--test-regex=tests/channels/pjsip/.*mwi"
}
def dockerOptions = "--ulimit core=0 --ulimit nofile=10240 " +
" -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"
def img = docker.image(randomImage)
img.pull()
stage ("Build") {
- img.inside(dockerOptions + " --name ${BUILD_TAG}-build") {
+ img.inside(dockerOptions + " --name ${bt}-build") {
echo 'Building..'
env.CCACHE_DIR = "/srv/cache/ccache"
sh "./tests/CI/buildAsterisk.sh --output-dir=${outputdir} --cache-dir=/srv/cache"
parallelTasks[groupName] = {
stage (groupName) {
- img.inside("${dockerOptions} --name ${BUILD_TAG}-${groupName}") {
+ img.inside("${dockerOptions} --name ${bt}-${groupName}") {
lock("${JOB_NAME}.${NODE_NAME}.installer") {
sh 'sudo ./tests/CI/installAsterisk.sh --user-group=jenkins:users'
[
{
- "name": "ari ",
+ "name": "ari ",
"dir": "tests/CI/output/ari",
"testcmd": "-t tests/rest_api/"
},
{
- "name": "pjsip ",
+ "name": "pjs ",
"dir": "tests/CI/output/pjsip",
"testcmd": "-t tests/channels/pjsip"
},
{
- "name": "sip ",
+ "name": "sip ",
"dir": "tests/CI/output/sip",
"testcmd": "-t tests/channels/SIP"
},
{
- "name": "iax2_locl",
+ "name": "iax ",
"dir": "tests/CI/output/iax2_local",
"testcmd": " -t tests/channels/iax2 -t tests/channels/local"
},
{
- "name": "agi-apps ",
+ "name": "apps",
"dir": "tests/CI/output/agi-apps",
"testcmd": " -t tests/agi -t tests/apps -t blind-transfer-parkingtimeout"
},
{
- "name": "other ",
+ "name": "othr",
"dir": "tests/CI/output/other",
"testcmd": " -T tests/(apps|agi|blind-transfer-parkingtimeout|rest_api|channels|realtime|example|skeleton_test|remote-test)"
}
def dockerOptions = "--ulimit core=0 --ulimit nofile=10240 " +
" -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"
def img = docker.image(randomImage)
img.pull()
stage ("Build") {
- img.inside(dockerOptions + " --name ${BUILD_TAG}-build") {
+ img.inside(dockerOptions + " --name ${bt}-build") {
echo 'Building..'
env.CCACHE_DIR = "/srv/cache/ccache"
sh "./tests/CI/buildAsterisk.sh --output-dir=${outputdir} --cache-dir=/srv/cache"
parallelTasks[groupName] = {
stage (groupName) {
- img.inside("${dockerOptions} --name ${BUILD_TAG}-${groupName}") {
+ img.inside("${dockerOptions} --name ${bt}-${groupName}") {
lock("${JOB_NAME}.${NODE_NAME}.installer") {
sh 'sudo ./tests/CI/installAsterisk.sh --user-group=jenkins:users'
def r = currentBuild.startTimeInMillis % images.length
def ri = images[(int)r]
def randomImage = env.DOCKER_REGISTRY + "/" + ri;
+ def bt = env.BUILD_TAG.replaceAll(/[^a-zA-Z0-9_.-]/, '-')
def dockerOptions = "--ulimit core=0 --ulimit nofile=10240 " +
" -v /srv/jenkins:/srv/jenkins:rw -v /srv/cache:/srv/cache:rw " +
- " --entrypoint='' --name ${BUILD_TAG}-build"
-
+ " --entrypoint='' --name ${bt}-build"
def outputdir = "tests/CI/output/UnitTests"
-
def img = docker.image(randomImage)
img.pull()
img.inside(dockerOptions) {