File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 66set -Exeuo pipefail
77
88CE_BUILD_SCRIPT_REPO=hpc-shs-ce-devops
9- CE_CONFIG_BRANCH=${CE_CONFIG_BRANCH:- main}
10- if [ -d ${CE_BUILD_SCRIPT_REPO} ]; then
9+
10+ # Use appropriate ce-devops branch
11+ if [[ -n " ${BRANCH_NAME:- } " && " $BRANCH_NAME " =~ " release/shs-" ]]; then
12+ CE_CONFIG_BRANCH=$BRANCH_NAME
13+ elif [[ -n " ${CHANGE_TARGET:- } " && " $CHANGE_TARGET " =~ " release/shs-" ]]; then
14+ CE_CONFIG_BRANCH=$CHANGE_TARGET
15+ else
16+ CE_CONFIG_BRANCH=${CE_CONFIG_BRANCH:- main}
17+ fi
18+
19+ if [ -d " ${CE_BUILD_SCRIPT_REPO} " ]; then
20+ git -C ${CE_BUILD_SCRIPT_REPO} fetch
1121 git -C ${CE_BUILD_SCRIPT_REPO} checkout ${CE_CONFIG_BRANCH}
1222 git -C ${CE_BUILD_SCRIPT_REPO} pull
1323else
1424 git clone --branch " ${CE_CONFIG_BRANCH} " https://$HPE_GITHUB_TOKEN @github.hpe.com/hpe/${CE_BUILD_SCRIPT_REPO} .git
1525fi
1626
17- . ${CE_BUILD_SCRIPT_REPO} /build/sh/rpmbuild/load.sh
18-
19- setup_dst_env
20- dst_build_rpm -c ${CE_BUILD_SCRIPT_REPO} /build/configs/${CE_CONFIG_FILE} $@
21-
27+ . " ${CE_BUILD_SCRIPT_REPO} /build/libfabric/build.sh"
You can’t perform that action at this time.
0 commit comments