2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2018 The Linux Foundation and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the term s of the Eclipse Public License
8 # v1.0 accompanies testing this distribution with Netvirt jobs, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
11 echo "---> quagga-build.sh"
15 # The script builds 6wind/quagga source and binary packages from zrpcd
16 # repository for testing router functionalities with Netvirt jobs, .
20 chmod a+x "$(pwd)/pkgsrc/dev_compile_script.sh"
21 cd "$(pwd)/pkgsrc" && sudo "./dev_compile_script.sh" -p -d -b -v "$QUAGGA_VERSION"
23 # Move packages into a that will be uploaded to Nexus
24 UPLOAD_FILES_PATH="$WORKSPACE/upload_files"
25 mkdir -p "$UPLOAD_FILES_PATH"
27 OS=$(facter operatingsystem)
31 mv "$WORKSPACE/zrpcd/pkgsrc/"*.deb "$UPLOAD_FILES_PATH" || true
34 mv "$WORKSPACE/zrpcd/pkgsrc/"*.rpm "$UPLOAD_FILES_PATH" || true
43 # todo: remove below lines once the scripts in zrpcd repos build the
45 # Ref: https://lists.opendaylight.org/pipermail/integration-dev/2018-July/012330.html
46 tar cvzf "$WORKSPACE/upload_files/zrpcd.$(date +%F).tar.gz" "$(pwd)/zrpcd"