3 string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'),
4 string(defaultValue: 'osm/vim-emu', description: '', name: 'GERRIT_PROJECT'),
5 string(defaultValue: env.GERRIT_REFSPEC, description: '', name: 'GERRIT_REFSPEC'),
6 string(defaultValue: env.GERRIT_PATCHSET_REVISION, description: '', name: 'GERRIT_PATCHSET_REVISION'),
7 string(defaultValue: 'https://osm.etsi.org/gerrit', description: '', name: 'PROJECT_URL_PREFIX'),
8 booleanParam(defaultValue: false, description: '', name: 'TEST_INSTALL'),
9 string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'),
13 def devops_checkout() {
15 git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: params.GERRIT_BRANCH
23 // vim-emu: We need to use privileged mode, docker.sock, and host pids for the container
24 // to test the emulator. Also needs -u 0:0 (root user inside container).
25 docker_args = "--privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock -u 0:0"
27 ci_helper = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy"
28 ci_helper.ci_pipeline( 'vim-emu',
29 params.PROJECT_URL_PREFIX,
30 params.GERRIT_PROJECT,
32 params.GERRIT_REFSPEC,
33 params.GERRIT_PATCHSET_REVISION,
35 params.ARTIFACTORY_SERVER,