9 archive-artifacts: '*.log'
12 name: install-docker-composeSonar
15 virtualenv $WORKSPACE/venv
16 source $WORKSPACE/venv/bin/activate
17 PYTHON="$WORKSPACE/venv/bin/python"
18 $PYTHON -m pip install --upgrade pip
19 $PYTHON -m pip install docker-compose
24 project-type: freestyle
25 node: centos7-docker-2c-4g
29 - opendaylight-infra-properties:
33 - opendaylight-infra-parameters:
34 os-cloud: '{os-cloud}'
37 refspec: 'refs/heads/{branch}'
38 artifacts: '{archive-artifacts}'
46 - opendaylight-infra-wrappers:
47 build-timeout: '{build-timeout}'
51 - gerrit-trigger-patch-sonar:
52 server-name: '{server-name}'
56 - shell: !include-raw-escape: include-setup-misc.sh
58 properties-file: env.properties
59 - install-docker-composeSonar
61 maven-version: 'mvn33'
64 clean install dependency:tree -V -B -Dsonar
65 -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true
66 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
68 - '-Xmx1024m -XX:MaxPermSize=256m'
69 settings: 'netvirt-settings'
71 global-settings: 'global-settings'
72 global-settings-type: cfp
74 properties-file: env.properties
76 maven-version: 'mvn33'
77 pom: 'vpnservice/it/pom.xml'
79 verify -V -B -l netvirt-vpnservice-sonar.log
80 -Pintegrationtest -Dsonar -Dskip.karaf.featureTest=true
81 -Dovsdb.controller.address=${{CONTROLLER_IP}}
82 -Ddocker.compose.file=ovs-2.5.0-hwvtep.yml
83 -Ddocker.vEnvWs=$WORKSPACE
86 - 'maven.repo.local=/tmp/r'
87 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
88 settings: 'netvirt-settings'
90 global-settings: 'global-settings'
91 global-settings-type: cfp
93 maven-version: 'mvn33'
94 pom: 'openstack/net-virt-it/pom.xml'
96 verify -V -B -l net-virt-sonar.log
97 -Pintegrationtest -Dsonar -Dskip.karaf.featureTest=true
98 -Dovsdb.controller.address=${{CONTROLLER_IP}}
99 -Ddocker.compose.file=ovs-2.5.0-hwvtep.yml
100 -Ddocker.vEnvWs=$WORKSPACE
103 - 'maven.repo.local=/tmp/r'
104 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
105 settings: 'netvirt-settings'
107 global-settings: 'global-settings'
108 global-settings-type: cfp
109 - shell: !include-raw-escape: include-raw-setup-docker.sh
111 properties-file: env.properties
113 maven-version: 'mvn33'
114 pom: 'openstack/net-virt-sfc/it/pom.xml'
116 verify -V -B -l openstack/net-virt-sfc-sonar.log
117 -Pintegrationtest -Dsonar
118 -Dskip.karaf.featureTest=true
119 -Dovsdb.controller.address=${{CONTROLLER_IP}}
122 - 'maven.repo.local=/tmp/r'
123 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
124 - 'ovsdbserver.ipaddress=127.0.0.1'
125 - 'ovsdbserver.port=6641'
126 - 'ovsdb.userspace.enabled=yes'
127 settings: 'netvirt-settings'
129 global-settings: 'global-settings'
130 global-settings-type: cfp
132 maven-version: 'mvn33'
133 # We should switch to the recommended configuration of sonar once
134 # JJB adds support for configurating the Sonar wrapper:
135 # http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
137 sonar:sonar -V -B -Djenkins
138 -Dsonar -Dsonar.host.url=https://sonar.opendaylight.org
139 -Dmaven.repo.local=/tmp/r
140 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
141 settings: 'netvirt-settings'
143 global-settings: 'global-settings'
144 global-settings-type: cfp
145 - shell: !include-raw-escape: include-raw-cleanup-docker.sh
146 - jacoco-nojava-workaround
149 - email-notification:
150 email-recipients: '{email-recipients}'
151 email-prefix: '[netvirt]'