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:
33 os-cloud: '{os-cloud}'
36 refspec: 'refs/heads/{branch}'
37 artifacts: '{archive-artifacts}'
45 - opendaylight-infra-wrappers:
46 build-timeout: '{build-timeout}'
50 - gerrit-trigger-patch-sonar:
51 server-name: '{server-name}'
55 - shell: !include-raw-escape: include-setup-misc.sh
57 properties-file: env.properties
58 - install-docker-composeSonar
60 maven-version: 'mvn33'
63 clean install dependency:tree -V -B -Dsonar
64 -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true
65 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
67 - '-Xmx1024m -XX:MaxPermSize=256m'
68 settings: 'netvirt-settings'
70 global-settings: 'odl-global-settings'
71 global-settings-type: cfp
73 properties-file: env.properties
75 maven-version: 'mvn33'
76 pom: 'vpnservice/it/pom.xml'
78 verify -V -B -l netvirt-vpnservice-sonar.log
79 -Pintegrationtest -Dsonar -Dskip.karaf.featureTest=true
80 -Dovsdb.controller.address=${{CONTROLLER_IP}}
81 -Ddocker.compose.file=ovs-2.5.0-hwvtep.yml
82 -Ddocker.vEnvWs=$WORKSPACE
85 - 'maven.repo.local=/tmp/r'
86 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
87 settings: 'netvirt-settings'
89 global-settings: 'odl-global-settings'
90 global-settings-type: cfp
92 maven-version: 'mvn33'
93 pom: 'openstack/net-virt-it/pom.xml'
95 verify -V -B -l net-virt-sonar.log
96 -Pintegrationtest -Dsonar -Dskip.karaf.featureTest=true
97 -Dovsdb.controller.address=${{CONTROLLER_IP}}
98 -Ddocker.compose.file=ovs-2.5.0-hwvtep.yml
99 -Ddocker.vEnvWs=$WORKSPACE
102 - 'maven.repo.local=/tmp/r'
103 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
104 settings: 'netvirt-settings'
106 global-settings: 'odl-global-settings'
107 global-settings-type: cfp
108 - shell: !include-raw-escape: include-raw-setup-docker.sh
110 properties-file: env.properties
112 maven-version: 'mvn33'
113 pom: 'openstack/net-virt-sfc/it/pom.xml'
115 verify -V -B -l openstack/net-virt-sfc-sonar.log
116 -Pintegrationtest -Dsonar
117 -Dskip.karaf.featureTest=true
118 -Dovsdb.controller.address=${{CONTROLLER_IP}}
121 - 'maven.repo.local=/tmp/r'
122 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
123 - 'ovsdbserver.ipaddress=127.0.0.1'
124 - 'ovsdbserver.port=6641'
125 - 'ovsdb.userspace.enabled=yes'
126 settings: 'netvirt-settings'
128 global-settings: 'odl-global-settings'
129 global-settings-type: cfp
131 maven-version: 'mvn33'
132 # We should switch to the recommended configuration of sonar once
133 # JJB adds support for configurating the Sonar wrapper:
134 # http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
136 sonar:sonar -V -B -Djenkins
137 -Dsonar -Dsonar.host.url=https://sonar.opendaylight.org
138 -Dmaven.repo.local=/tmp/r
139 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
140 settings: 'netvirt-settings'
142 global-settings: 'odl-global-settings'
143 global-settings-type: cfp
144 - shell: !include-raw-escape: include-raw-cleanup-docker.sh
145 - jacoco-nojava-workaround
148 - email-notification:
149 email-recipients: '{email-recipients}'
150 email-prefix: '[netvirt]'
153 - opendaylight-infra-shiplogs:
154 maven-version: 'mvn33'