3 # ================================================================================
4 # Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=========================================================
22 echo "running script: [$0] for module [$1] at stage [$2]"
24 MVN_PROJECT_MODULEID="$1"
27 PROJECT_ROOT=$(dirname $0)
30 RELEASE_TAG=${MVN_RELEASE_TAG:-R7}
31 if [ "$RELEASE_TAG" != "R1" ]; then
32 RELEASE_TAGGED_DIR="${RELEASE_TAG}/"
34 RELEASE_TAGGED_DIR="releases"
37 source "${PROJECT_ROOT}"/mvn-phase-lib.sh
40 # Customize the section below for each project
43 echo "==> clean phase script"
46 rm -rf ./venv-* ./*.wgn ./site
49 echo "==> generate-sources phase script"
53 echo "==> compile phase script"
56 echo "==> test phase script"
60 echo "==> package phase script"
61 build_archives_for_wagons
65 echo "==> install phase script"
68 echo "==> deploy phase script"
69 upload_wagons_and_type_yamls
73 echo "==> unprocessed phase"