X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fdistribution%2Fdistribution-macros.yaml;h=2e3ba043b449673ddaed4363ea73f5e29eae1515;hb=321d2beb638ea788003884f7aefdde104464c0cc;hp=bd835f21f8dc53933f1b6d5131a66f888a898b6c;hpb=f93289b1fc422b77fcd00cfebe848c4eac982284;p=releng%2Fbuilder.git diff --git a/jjb/integration/distribution/distribution-macros.yaml b/jjb/integration/distribution/distribution-macros.yaml index bd835f21f..2e3ba043b 100644 --- a/jjb/integration/distribution/distribution-macros.yaml +++ b/jjb/integration/distribution/distribution-macros.yaml @@ -1,26 +1,5 @@ # JJB macros specific to Integration/Distribution ODL project --- - -- builder: - name: distribution-deploy-verify - # Operation: Deploy ODL with all fetures and check it is not broken. - # Required bash variables: - # KARAF_VERSION: 'karaf4' or 'karaf3'. - # Use distribution-karaf-version macro to customize. - builders: - - integration-detect-variables - - shell: !include-raw: distribution-deploy-verify.sh - -- builder: - name: distribution-deploy-offline - # Operation: Deploys ODL on the current system, with no external repo configuration, check it works. - # Required bash variables: - # KARAF_VERSION: 'karaf4' or 'karaf3'. - # Use distribution-karaf-version macro to customize. - builders: - - integration-detect-variables - - shell: !include-raw: distribution-deploy-offline.sh - - builder: name: distribution-check-wipe # Step zero: Wipe file repositories up front. @@ -34,6 +13,14 @@ rm -rfv /tmp/t echo "create n: multithreaded execution might fail at creating it." mkdir /tmp/n + echo "detecting distribution allowed projects" + # Some allowed projects cannot be detected in distribution because they do not produce features. + ALLOW_PROJECTS=(yangtools mdsal openflowjava) + ALLOW_PROJECTS+=(`grep 'org.opendaylight.' -Rh distribution \ + | sed -e 's%^[ \t]*org.opendaylight.%%' \ + | sed -e 's%%%' | sort -u`) + echo "Allowed projects are ${ALLOW_PROJECTS[@]}" + echo "ALLOW_PROJECTS=${ALLOW_PROJECTS[@]}" > allowed_projects.txt - builder: name: distribution-check-build-project @@ -48,7 +35,7 @@ goals: | clean deploy dependency:tree -DoutputFile=dependency_tree.txt - -Pq + -Pq -Pmanaged -Punmanaged -DaltDeploymentRepository=fake-nexus::default::file:///tmp/n/ {mvn-opts} java-opts: @@ -68,6 +55,18 @@ # gerrit-project: Project name as nexus URI part. Typically '$GERRIT_PROJECT'. builders: - shell: | + echo "These are allowed projects: $ALLOW_PROJECTS" + echo "These are distribution pulled projects:" + EXIT_CODE="0" + for PROJECT in `ls /tmp/r/org/opendaylight`; do + echo "checking $PROJECT" + if [[ "$ALLOW_PROJECTS" != *"$PROJECT"* ]]; then + echo "ERROR: Not allowed project $PROJECT pulled" + EXIT_CODE="1" + fi + done + exit $EXIT_CODE + echo "verify project groupId" mkdir -p /tmp/t/org/opendaylight/{gerrit-project} mv /tmp/n/org/opendaylight/{gerrit-project}/* /tmp/t/org/opendaylight/{gerrit-project}/ test -z "`find /tmp/n/ -type f`" || ( echo "ERROR: Mismatched groupId detected (see above)." && false ) @@ -88,7 +87,7 @@ goals: | clean install dependency:tree -DoutputFile=dependency_tree.txt - -Pq + -Pq -Pmanaged -Punmanaged {mvn-opts} java-opts: - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' @@ -193,7 +192,7 @@ clean install dependency:tree -DoutputFile=dependency_tree.txt -s fake_remotes.xml - -Pq + -Pq -Pmanaged -Punmanaged {mvn-opts} java-opts: - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' @@ -219,7 +218,7 @@ clean install dependency:tree -DoutputFile=dependency_tree.txt -s fake_remotes.xml - -Pq + -Pq -Pmananaged -Punmanaged -Dsft.heap.max=4g -DskipTests=false {mvn-opts}