9 archive-artifacts: '*.log'
12 name: install-docker-composeSonar
15 virtualenv $WORKSPACE/venv
16 source $WORKSPACE/venv/bin/activate
17 pip install --upgrade pip
18 pip install docker-compose
23 project-type: freestyle
24 node: centos7-docker-2c-4g
28 - opendaylight-infra-properties:
32 - opendaylight-infra-parameters:
35 refspec: 'refs/heads/{branch}'
36 artifacts: '{archive-artifacts}'
44 - opendaylight-infra-wrappers:
45 build-timeout: '{build-timeout}'
49 - gerrit-trigger-patch-sonar:
50 server-name: '{server-name}'
54 - shell: !include-raw-escape: include-setup-misc.sh
56 properties-file: env.properties
57 - install-docker-composeSonar
59 maven-version: 'mvn33'
62 clean install dependency:tree -V -B -Dsonar
63 -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true
64 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
66 - '-Xmx1024m -XX:MaxPermSize=256m'
67 settings: 'netvirt-settings'
69 global-settings: 'odl-global-settings'
70 global-settings-type: cfp
72 properties-file: env.properties
74 maven-version: 'mvn33'
75 pom: 'vpnservice/it/pom.xml'
77 verify -V -B -l netvirt-vpnservice-sonar.log
78 -Pintegrationtest -Dsonar -Dskip.karaf.featureTest=true
79 -Dovsdb.controller.address=${{CONTROLLER_IP}}
80 -Ddocker.compose.file=ovs-2.5.0-hwvtep.yml
81 -Ddocker.vEnvWs=$WORKSPACE
84 - 'maven.repo.local=/tmp/r'
85 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
86 settings: 'netvirt-settings'
88 global-settings: 'odl-global-settings'
89 global-settings-type: cfp
91 maven-version: 'mvn33'
92 pom: 'openstack/net-virt-it/pom.xml'
94 verify -V -B -l net-virt-sonar.log
95 -Pintegrationtest -Dsonar -Dskip.karaf.featureTest=true
96 -Dovsdb.controller.address=${{CONTROLLER_IP}}
97 -Ddocker.compose.file=ovs-2.5.0-hwvtep.yml
98 -Ddocker.vEnvWs=$WORKSPACE
101 - 'maven.repo.local=/tmp/r'
102 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
103 settings: 'netvirt-settings'
105 global-settings: 'odl-global-settings'
106 global-settings-type: cfp
107 - shell: !include-raw-escape: include-raw-setup-docker.sh
109 properties-file: env.properties
111 maven-version: 'mvn33'
112 pom: 'openstack/net-virt-sfc/it/pom.xml'
114 verify -V -B -l openstack/net-virt-sfc-sonar.log
115 -Pintegrationtest -Dsonar
116 -Dskip.karaf.featureTest=true
117 -Dovsdb.controller.address=${{CONTROLLER_IP}}
120 - 'maven.repo.local=/tmp/r'
121 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
122 - 'ovsdbserver.ipaddress=127.0.0.1'
123 - 'ovsdbserver.port=6641'
124 - 'ovsdb.userspace.enabled=yes'
125 settings: 'netvirt-settings'
127 global-settings: 'odl-global-settings'
128 global-settings-type: cfp
130 maven-version: 'mvn33'
131 # We should switch to the recommended configuration of sonar once
132 # JJB adds support for configurating the Sonar wrapper:
133 # http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
135 sonar:sonar -V -B -Djenkins
136 -Dsonar -Dsonar.host.url=https://sonar.opendaylight.org
137 -Dmaven.repo.local=/tmp/r
138 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
139 settings: 'netvirt-settings'
141 global-settings: 'odl-global-settings'
142 global-settings-type: cfp
143 - shell: !include-raw-escape: include-raw-cleanup-docker.sh
144 - jacoco-nojava-workaround
147 - email-notification:
148 email-recipients: '{email-recipients}'
149 email-prefix: '[netvirt]'
152 - opendaylight-infra-shiplogs:
153 maven-version: 'mvn33'