4 - 'apex-verify-{stream1}'
5 - 'apex-verify-{stream2}'
6 - 'apex-runner-{platform}-{scenario}-{stream}'
7 - 'apex-build-{stream}'
8 - 'apex-deploy-virtual-{scenario}-{stream}'
9 - 'apex-deploy-baremetal-{scenario}-{stream}'
10 - 'apex-daily-{stream1}'
11 - 'apex-daily-{stream2}'
13 # stream: branch with - in place of / (eg. stable-arno)
14 # branch: branch (eg. stable/arno)
19 block-stream: 'brahmaputra'
21 gs-pathname: '/master'
23 branch: 'stable/brahmaputra'
24 gs-pathname: '/brahmaputra'
25 block-stream: 'master'
33 block-stream: 'brahmaputra'
35 gs-pathname: '/master'
39 branch: 'stable/brahmaputra'
40 gs-pathname: '/brahmaputra'
41 block-stream: 'master'
48 - 'os-nosdn-nofeature-ha'
49 - 'os-odl_l2-nofeature-ha'
50 - 'os-odl_l2-sfc-noha'
51 - 'os-odl_l3-nofeature-ha'
52 - 'os-onos-nofeature-ha'
53 - 'os-opencontrail-nofeature-ha'
61 name: 'apex-verify-{stream2}'
67 gs-pathname: '{gs-pathname}'
74 default: https://gerrit.opnfv.org/gerrit/$PROJECT
75 description: "Used for overriding the GIT URL coming from parameters macro."
79 credentials-id: '{ssh-credentials}'
80 refspec: '$GERRIT_REFSPEC'
81 choosing-strategy: 'gerrit'
86 - patchset-created-event:
87 exclude-drafts: 'false'
88 exclude-trivial-rebase: 'false'
89 exclude-no-code-change: 'true'
90 - draft-published-event
91 - comment-added-contains-event:
92 comment-contains-value: 'recheck'
93 - comment-added-contains-event:
94 comment-contains-value: 'reverify'
96 - project-compare-type: 'ANT'
97 project-pattern: 'apex'
99 - branch-compare-type: 'ANT'
100 branch-pattern: '**/{branch}'
113 use-build-blocker: true
119 - 'apex-verify-{block-stream}'
124 - project: 'apex-deploy-virtual-os-odl_l2-nofeature-ha-{stream2}'
125 predefined-parameters: |
126 BUILD_DIRECTORY=apex-verify-{stream2}/build_output
131 - project: 'apex-deploy-virtual-os-onos-nofeature-ha-{stream2}'
132 predefined-parameters: |
133 BUILD_DIRECTORY=apex-verify-{stream2}/build_output
138 - project: 'apex-deploy-virtual-os-odl_l3-nofeature-ha-{stream2}'
139 predefined-parameters: |
140 BUILD_DIRECTORY=apex-verify-{stream2}/build_output
145 - project: 'apex-deploy-virtual-os-odl_l2-sfc-noha-{stream2}'
146 predefined-parameters: |
147 BUILD_DIRECTORY=apex-verify-{stream2}/build_output
151 - 'apex-workspace-cleanup'
155 name: 'apex-verify-{stream1}'
161 gs-pathname: '{gs-pathname}'
168 default: https://gerrit.opnfv.org/gerrit/$PROJECT
169 description: "Used for overriding the GIT URL coming from parameters macro."
172 - gerrit-trigger-scm:
173 credentials-id: '{ssh-credentials}'
174 refspec: '$GERRIT_REFSPEC'
175 choosing-strategy: 'gerrit'
180 - patchset-created-event:
181 exclude-drafts: 'false'
182 exclude-trivial-rebase: 'false'
183 exclude-no-code-change: 'true'
184 - draft-published-event
185 - comment-added-contains-event:
186 comment-contains-value: 'recheck'
187 - comment-added-contains-event:
188 comment-contains-value: 'reverify'
190 - project-compare-type: 'ANT'
191 project-pattern: 'apex'
193 - branch-compare-type: 'ANT'
194 branch-pattern: '**/{branch}'
207 use-build-blocker: true
213 - 'apex-verify-{block-stream}'
218 - project: 'apex-deploy-virtual-os-nosdn-nofeature-ha-{stream1}'
219 predefined-parameters: |
220 BUILD_DIRECTORY=apex-verify-{stream1}/build_output
224 - 'apex-workspace-cleanup'
227 name: 'apex-runner-{platform}-{scenario}-{stream}'
229 # runner jobs for deploying manually
237 gs-pathname: '{gs-pathname}'
244 default: https://gerrit.opnfv.org/gerrit/$PROJECT
245 description: "Used for overriding the GIT URL coming from parameters macro."
248 - gerrit-trigger-scm:
249 credentials-id: '{ssh-credentials}'
251 choosing-strategy: 'default'
255 use-build-blocker: true
262 - project: 'apex-deploy-{platform}-{scenario}-{stream}'
263 predefined-parameters:
268 - project: 'yardstick-apex-{slave}-daily-{stream}'
269 predefined-parameters:
270 DEPLOY_SCENARIO={scenario}
273 build-step-failure-threshold: 'never'
274 failure-threshold: 'never'
275 unstable-threshold: 'FAILURE'
277 - project: 'functest-apex-{slave}-daily-{stream}'
278 predefined-parameters:
279 DEPLOY_SCENARIO={scenario}
282 build-step-failure-threshold: 'never'
283 failure-threshold: 'never'
284 unstable-threshold: 'FAILURE'
287 name: 'apex-build-{stream}'
289 # Job template for builds
291 # Required Variables:
292 # stream: branch with - in place of / (eg. stable)
293 # branch: branch (eg. stable)
302 gs-pathname: '{gs-pathname}'
307 default: https://gerrit.opnfv.org/gerrit/$PROJECT
308 description: "Used for overriding the GIT URL coming from parameters macro."
312 credentials-id: '{ssh-credentials}'
318 use-build-blocker: true
325 - project: 'apex-deploy-virtual-os-nosdn-nofeature-ha-{stream}'
326 predefined-parameters: |
327 BUILD_DIRECTORY=apex-build-{stream}/build_output
331 - 'apex-upload-artifact'
334 name: 'apex-deploy-virtual-{scenario}-{stream}'
336 # Job template for virtual deployment
338 # Required Variables:
339 # stream: branch with - in place of / (eg. stable)
340 # branch: branch (eg. stable)
347 credentials-id: '{ssh-credentials}'
355 gs-pathname: '{gs-pathname}'
357 name: DEPLOY_SCENARIO
358 default: '{scenario}'
359 description: "Scenario to deploy with."
363 description: "Use yes in lower case to invoke clean. Indicates if the deploy environment should be cleaned before deployment"
367 use-build-blocker: true
372 - 'apex-deploy-virtual'
373 - 'apex-workspace-cleanup'
376 name: 'apex-deploy-baremetal-{scenario}-{stream}'
378 # Job template for baremetal deployment
380 # Required Variables:
381 # stream: branch with - in place of / (eg. stable)
382 # branch: branch (eg. stable)
389 credentials-id: '{ssh-credentials}'
397 gs-pathname: '{gs-pathname}'
399 name: DEPLOY_SCENARIO
400 default: '{scenario}'
401 description: "Scenario to deploy with."
405 use-build-blocker: true
413 - 'apex-deploy-baremetal'
414 - 'apex-workspace-cleanup'
418 name: 'apex-daily-{stream2}'
420 # Job template for daily build
422 # Required Variables:
423 # stream: branch with - in place of / (eg. stable)
424 # branch: branch (eg. stable)
431 credentials-id: '{ssh-credentials}'
439 gs-pathname: '{gs-pathname}'
443 use-build-blocker: true
455 - project: 'apex-build-{stream2}'
457 current-parameters: true
460 - project: 'apex-deploy-baremetal-os-odl_l2-nofeature-ha-{stream2}'
461 predefined-parameters: |
462 BUILD_DIRECTORY=apex-build-{stream2}/build_output
467 - project: 'functest-apex-{slave}-daily-{stream2}'
468 predefined-parameters:
469 DEPLOY_SCENARIO=os-odl_l2-nofeature-ha
472 build-step-failure-threshold: 'never'
473 failure-threshold: 'never'
474 unstable-threshold: 'FAILURE'
476 - project: 'yardstick-apex-{slave}-daily-{stream2}'
477 predefined-parameters:
478 DEPLOY_SCENARIO=os-odl_l2-nofeature-ha
481 build-step-failure-threshold: 'never'
482 failure-threshold: 'never'
483 unstable-threshold: 'FAILURE'
485 - project: 'apex-deploy-baremetal-os-onos-nofeature-ha-{stream2}'
486 predefined-parameters:
487 BUILD_DIRECTORY=apex-build-{stream2}/build_output
491 - project: 'functest-apex-{slave}-daily-{stream2}'
492 predefined-parameters:
493 DEPLOY_SCENARIO=os-onos-nofeature-ha
496 build-step-failure-threshold: 'never'
497 failure-threshold: 'never'
498 unstable-threshold: 'FAILURE'
500 - project: 'yardstick-apex-{slave}-daily-{stream2}'
501 predefined-parameters:
502 DEPLOY_SCENARIO=os-onos-nofeature-ha
505 build-step-failure-threshold: 'never'
506 failure-threshold: 'never'
507 unstable-threshold: 'FAILURE'
509 - project: 'apex-deploy-baremetal-os-odl_l3-nofeature-ha-{stream2}'
510 predefined-parameters:
511 BUILD_DIRECTORY=apex-build-{stream2}/build_output
515 - project: 'functest-apex-{slave}-daily-{stream2}'
516 predefined-parameters:
517 DEPLOY_SCENARIO=os-odl_l3-nofeature-ha
520 build-step-failure-threshold: 'never'
521 failure-threshold: 'never'
522 unstable-threshold: 'FAILURE'
524 - project: 'yardstick-apex-{slave}-daily-{stream2}'
525 predefined-parameters:
526 DEPLOY_SCENARIO=os-odl_l3-nofeature-ha
529 build-step-failure-threshold: 'never'
530 failure-threshold: 'never'
531 unstable-threshold: 'FAILURE'
535 name: 'apex-daily-{stream1}'
537 # Job template for daily build
539 # Required Variables:
540 # stream: branch with - in place of / (eg. stable)
541 # branch: branch (eg. stable)
548 credentials-id: '{ssh-credentials}'
556 gs-pathname: '{gs-pathname}'
560 use-build-blocker: true
572 - project: 'apex-build-{stream1}'
574 current-parameters: true
577 - project: 'apex-deploy-virtual-nosdn-nofeature-ha-{stream1}'
578 predefined-parameters: |
579 BUILD_DIRECTORY=apex-build-{stream1}/build_output
584 - project: 'functest-apex-{slave}-daily-{stream1}'
585 predefined-parameters:
586 DEPLOY_SCENARIO=os-nosdn-nofeature-ha
589 build-step-failure-threshold: 'never'
590 failure-threshold: 'never'
591 unstable-threshold: 'FAILURE'
593 - project: 'yardstick-apex-{slave}-daily-{stream1}'
594 predefined-parameters:
595 DEPLOY_SCENARIO=os-nosdn-nofeature-ha
598 build-step-failure-threshold: 'never'
599 failure-threshold: 'never'
600 unstable-threshold: 'FAILURE'
602 ########################
604 ########################
611 description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact"
613 name: ARTIFACT_VERSION
615 description: "Artifact version type"
617 name: BUILD_DIRECTORY
618 default: $WORKSPACE/build_output
619 description: "Directory where the build artifact will be located upon the completion of the build."
621 name: CACHE_DIRECTORY
622 default: $HOME/opnfv/cache{gs-pathname}
623 description: "Directory where the cache to be used during the build is located."
626 default: https://gerrit.opnfv.org/gerrit/$PROJECT
627 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
630 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
631 description: "URL to Google Storage."
633 ########################
635 ########################
644 # log info to console
645 echo "Starting the build of Apex using OpenStack Master packages. This will take some time..."
646 echo "---------------------------------------------------------------------------------------"
648 # create the cache directory if it doesn't exist
649 [[ -d $CACHE_DIRECTORY ]] || mkdir -p $CACHE_DIRECTORY
650 # set OPNFV_ARTIFACT_VERSION
651 if echo $BUILD_TAG | grep "apex-verify" 1> /dev/null; then
652 if echo $GERRIT_BRANCH | grep "brahmaputra" 1> /dev/null; then
653 export OPNFV_ARTIFACT_VERSION=brahmaputra-dev${BUILD_NUMBER}
654 export BUILD_ARGS="-v $OPNFV_ARTIFACT_VERSION -c file://$CACHE_DIRECTORY $BUILD_DIRECTORY"
656 export OPNFV_ARTIFACT_VERSION=dev${BUILD_NUMBER}
657 export BUILD_ARGS="-r $OPNFV_ARTIFACT_VERSION -c file://$CACHE_DIRECTORY"
659 elif [ "$ARTIFACT_VERSION" == "daily" ]; then
660 if echo $GERRIT_BRANCH | grep "brahmaputra" 1> /dev/null; then
661 export OPNFV_ARTIFACT_VERSION=brahmaputra-$(date -u +"%Y-%m-%d")
662 export BUILD_ARGS="-v $OPNFV_ARTIFACT_VERSION -c file://$CACHE_DIRECTORY $BUILD_DIRECTORY"
664 export OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d")
665 export BUILD_ARGS="-r $OPNFV_ARTIFACT_VERSION -c file://$CACHE_DIRECTORY --iso"
668 export OPNFV_ARTIFACT_VERSION=${ARTIFACT_VERSION}
670 # clean for stable but doesn't matter for master
671 sudo opnfv-clean || echo ""
674 ./build.sh $BUILD_ARGS
675 RPM_VERSION=$(grep Version $BUILD_DIRECTORY/../build/opnfv-apex.spec | awk '{ print $2 }')-$(echo $OPNFV_ARTIFACT_VERSION | tr -d '_-')
676 # list the contents of BUILD_OUTPUT directory
677 ls -al $BUILD_DIRECTORY
678 # save information regarding artifact into file
680 echo "OPNFV_ARTIFACT_VERSION=$OPNFV_ARTIFACT_VERSION"
681 echo "OPNFV_GIT_URL=$(git config --get remote.origin.url)"
682 echo "OPNFV_GIT_SHA1=$(git rev-parse HEAD)"
683 echo "OPNFV_ARTIFACT_URL=$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso"
684 echo "OPNFV_ARTIFACT_MD5SUM=$(md5sum $BUILD_DIRECTORY/OPNFV-CentOS-7-x86_64-$OPNFV_ARTIFACT_VERSION.iso | cut -d' ' -f1)"
685 echo "OPNFV_SRPM_URL=$GS_URL/opnfv-apex-$RPM_VERSION.src.rpm"
686 echo "OPNFV_RPM_URL=$GS_URL/opnfv-apex-$RPM_VERSION.noarch.rpm"
687 echo "OPNFV_RPM_MD5SUM=$(md5sum $BUILD_DIRECTORY/opnfv-apex-$RPM_VERSION.noarch.rpm | cut -d' ' -f1)"
688 echo "OPNFV_BUILD_URL=$BUILD_URL"
689 ) > $WORKSPACE/opnfv.properties
690 echo "--------------------------------------------------------"
694 name: 'apex-workspace-cleanup'
702 # delete everything that is in $WORKSPACE
703 /bin/rm -rf $WORKSPACE
706 name: 'apex-upload-artifact'
714 # log info to console
715 echo "Uploading the Apex artifact. This could take some time..."
716 echo "--------------------------------------------------------"
719 # source the opnfv.properties to get ARTIFACT_VERSION
720 source $WORKSPACE/opnfv.properties
722 # upload artifact and additional files to google storage
723 gsutil cp $BUILD_DIRECTORY/OPNFV-CentOS-7-x86_64-$OPNFV_ARTIFACT_VERSION.iso gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso > gsutil.iso.log 2>&1
724 RPM_INSTALL_PATH=$BUILD_DIRECTORY/$(basename $OPNFV_RPM_URL)
725 RPM_LIST=$RPM_INSTALL_PATH
726 for pkg in common undercloud opendaylight-sfc; do
727 RPM_LIST+=" ${RPM_INSTALL_PATH/opnfv-apex/opnfv-apex-${pkg}}"
729 SRPM_INSTALL_PATH=$BUILD_DIRECTORY/$(basename $OPNFV_SRPM_URL)
730 SRPM_LIST=$SRPM_INSTALL_PATH
731 for pkg in common undercloud opendaylight-sfc; do
732 SRPM_LIST+=" ${SRPM_INSTALL_PATH/opnfv-apex/opnfv-apex-${pkg}}"
734 for artifact in $RPM_LIST $SRPM_LIST; do
735 gsutil cp $artifact gs://$GS_URL/$(basename $artifact) > gsutil.iso.log 2>&1
737 gsutil cp $WORKSPACE/opnfv.properties gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.properties > gsutil.properties.log 2>&1
738 gsutil cp $WORKSPACE/opnfv.properties gs://$GS_URL/latest.properties > gsutil.latest.log 2>&1
741 echo "--------------------------------------------------------"
743 echo "ISO Artifact is available as http://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso"
744 echo "RPM Artifact is available as http://$GS_URL/$(basename $OPNFV_RPM_URL)"
747 name: 'apex-deploy-virtual'
755 # log info to console
756 echo "Starting the Apex virtual deployment."
757 echo "--------------------------------------------------------"
760 if [[ $BUILD_DIRECTORY == *verify-master* ]]; then
761 cd $WORKSPACE/../${BUILD_DIRECTORY/build_output/}
763 echo "WORKSPACE modified to $WORKSPACE"
765 elif [[ ! "$ARTIFACT_NAME" == "latest" ]]; then
766 # if artifact name is passed the pull a
767 # specific artifact from artifacts.opnfv.org
768 RPM_INSTALL_PATH=$GS_URL/$ARTIFACT_NAME
770 if [[ $BUILD_DIRECTORY == *verify* ]]; then
771 BUILD_DIRECTORY=$WORKSPACE/../$BUILD_DIRECTORY
772 echo "BUILD DIRECTORY modified to $BUILD_DIRECTORY"
773 elif [[ $BUILD_DIRECTORY == *apex-build* ]]; then
774 BUILD_DIRECTORY=$WORKSPACE/../$BUILD_DIRECTORY
775 echo "BUILD DIRECTORY modified to $BUILD_DIRECTORY"
778 if [[ -f ${BUILD_DIRECTORY}/../opnfv.properties ]]; then
779 # if opnfv.properties exists then use the
780 # local build. Source the file so we get local OPNFV vars
781 source ${BUILD_DIRECTORY}/../opnfv.properties
782 RPM_INSTALL_PATH=${BUILD_DIRECTORY}/$(basename $OPNFV_RPM_URL)
784 if [[ $BUILD_DIRECTORY == *verify* ]]; then
785 echo "BUILD_DIRECTORY is from a verify job, so will not use latest from URL"
786 echo "Check that the slave has opnfv.properties in $BUILD_DIRECTORY"
788 elif [[ $BUILD_DIRECTORY == *apex-build* ]]; then
789 echo "BUILD_DIRECTORY is from a daily job, so will not use latest from URL"
790 echo "Check that the slave has opnfv.properties in $BUILD_DIRECTORY"
793 # no opnfv.properties means use the latest from artifacts.opnfv.org
794 # get the latest.properties to get the link to the latest artifact
795 curl -s -o $WORKSPACE/opnfv.properties http://$GS_URL/latest.properties
796 [[ -f opnfv.properties ]] || exit 1
797 # source the file so we get OPNFV vars
798 source opnfv.properties
799 RPM_INSTALL_PATH=$OPNFV_RPM_URL
803 if [ -z "$DEPLOY_SCENARIO" ]; then
804 echo "Deploy scenario not set!"
808 # use local build for verify
809 if [[ $BUILD_DIRECTORY == *verify-master* ]]; then
810 if [ ! -e "${WORKSPACE}/build/lib" ]; then ln -s ${WORKSPACE}/lib ${WORKSPACE}/build/lib; fi
811 DEPLOY_CMD="./deploy.sh -c ${WORKSPACE}/build -r ${WORKSPACE}/build/images/"
812 DEPLOY_FILE="${WORKSPACE}/config/deploy/${DEPLOY_SCENARIO}.yaml"
813 NETWORK_FILE="${WORKSPACE}/config/network/network_settings.yaml"
815 RPM_LIST=$RPM_INSTALL_PATH
816 for pkg in common undercloud opendaylight-sfc; do
817 RPM_LIST+=" ${RPM_INSTALL_PATH/opnfv-apex/opnfv-apex-${pkg}}"
820 # update / install the new rpm
821 if rpm -q opnfv-apex > /dev/null; then
822 if [ $(basename $OPNFV_RPM_URL) == $(rpm -q opnfv-apex).rpm ]; then
823 echo "RPM is already installed"
824 elif sudo yum update -y $RPM_LIST | grep "does not update installed package"; then
825 if ! sudo yum downgrade -y $RPM_LIST; then
826 sudo yum remove -y opnfv-undercloud opnfv-common
827 sudo yum downgrade -y $RPM_INSTALL_PATH
831 sudo yum install -y $RPM_LIST;
833 DEPLOY_CMD=opnfv-deploy
834 DEPLOY_FILE="/etc/opnfv-apex/${DEPLOY_SCENARIO}.yaml"
835 NETWORK_FILE="/etc/opnfv-apex/network_settings.yaml"
838 if [ "$OPNFV_CLEAN" == 'yes' ]; then
839 if [[ $BUILD_DIRECTORY == *verify-master* ]]; then
845 # initiate virtual deployment
846 echo "Deploy Scenario set to ${DEPLOY_SCENARIO}"
847 if [ -e $DEPLOY_FILE ]; then
848 sudo $DEPLOY_CMD -v -d ${DEPLOY_FILE} -n $NETWORK_FILE --debug
850 echo "File does not exist /etc/opnfv-apex/${DEPLOY_SCENARIO}.yaml"
854 echo "--------------------------------------------------------"
858 name: 'apex-deploy-baremetal'
866 # log info to console
867 echo "Starting the Apex baremetal deployment."
868 echo "--------------------------------------------------------"
871 if [[ ! "$ARTIFACT_NAME" == "latest" ]]; then
872 # if artifact name is passed the pull a
873 # specific artifact from artifacts.opnfv.org
874 RPM_INSTALL_PATH=$GS_URL/$ARTIFACT_NAME
876 if [[ $BUILD_DIRECTORY == *apex-build* ]]; then
877 BUILD_DIRECTORY=$WORKSPACE/../$BUILD_DIRECTORY
878 echo "BUILD DIRECTORY modified to $BUILD_DIRECTORY"
880 if [[ -f ${BUILD_DIRECTORY}/../opnfv.properties ]]; then
881 # if opnfv.properties exists then use the
882 # local build. Source the file so we get local OPNFV vars
883 source ${BUILD_DIRECTORY}/../opnfv.properties
884 RPM_INSTALL_PATH=${BUILD_DIRECTORY}/$(basename $OPNFV_RPM_URL)
886 # no opnfv.properties means use the latest from artifacts.opnfv.org
887 # get the latest.properties to get the link to the latest artifact
888 curl -s -o $WORKSPACE/opnfv.properties http://$GS_URL/latest.properties
889 [[ -f opnfv.properties ]] || exit 1
890 # source the file so we get OPNFV vars
891 source opnfv.properties
892 RPM_INSTALL_PATH=$OPNFV_RPM_URL
896 if [ ! -e "$RPM_INSTALL_PATH" ]; then
897 RPM_INSTALL_PATH=http://${OPNFV_RPM_URL}
900 RPM_LIST=$RPM_INSTALL_PATH
901 for pkg in common undercloud; do
902 RPM_LIST+=" ${RPM_INSTALL_PATH/opnfv-apex/opnfv-apex-${pkg}}"
905 # update / install the new rpm
906 if rpm -q opnfv-apex > /dev/null; then
907 if [ $(basename $OPNFV_RPM_URL) == $(rpm -q opnfv-apex).rpm ]; then
908 echo "RPM is already installed"
909 elif sudo yum update -y $RPM_LIST | grep "does not update installed package"; then
910 if ! sudo yum downgrade -y $RPM_LIST; then
911 sudo yum remove -y opnfv-undercloud opnfv-common
912 sudo yum downgrade -y $RPM_INSTALL_PATH
916 sudo yum install -y $RPM_LIST;
919 # cleanup environment before we start
921 # initiate baremetal deployment
922 if [ -e /etc/opnfv-apex/network_settings.yaml ]; then
923 if [ -n "$DEPLOY_SCENARIO" ]; then
924 echo "Deploy Scenario set to ${DEPLOY_SCENARIO}"
925 if [ -e /etc/opnfv-apex/${DEPLOY_SCENARIO}.yaml ]; then
926 sudo opnfv-deploy -i /root/inventory/pod_settings.yaml \
927 -d /etc/opnfv-apex/${DEPLOY_SCENARIO}.yaml \
928 -n /root/network/network_settings.yaml --debug
930 echo "File does not exist /etc/opnfv-apex/${DEPLOY_SCENARIO}.yaml"
934 echo "Deploy scenario not set!"
938 echo "File /etc/opnfv-apex/network_settings.yaml does not exist!"
943 echo "--------------------------------------------------------"
946 #######################
948 ########################
954 name: 'apex-brahmaputra'