File tree Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 1010else :
1111 skip_pkgs = set ()
1212
13- system_dir = os .getenv ("TUE_SYSTEM_DIR" )
14- packages = (f .path for f in os .scandir (os .path .join (system_dir , "src" )) if f .is_dir ())
13+ # TODO(anyone): remove try...except when tue-env is updated to new variable names
14+ try :
15+ ws_dir = os .environ ["TUE_ENV_WS_DIR" ]
16+ except KeyError :
17+ ws_dir = os .environ ["TUE_WS_DIR" ]
18+
19+ packages = (f .path for f in os .scandir (os .path .join (ws_dir , "src" )) if f .is_dir ())
1520
1621install_build_pkgs = set () # All packages that need to be build and require all deps to be installed
1722build_pkgs = set () # All packages that need to be build
Original file line number Diff line number Diff line change @@ -122,8 +122,9 @@ docker exec tue-env bash -c "source ~/.bashrc; tue-get install ros-python_orocos
122122
123123if [ -n " ${SKIPLIST} " ]
124124then
125- echo -e ' \e[35m\e[1mcatkin config --workspace ${TUE_SYSTEM_DIR} --skiplist ' " ${SKIPLIST} " ' \e[0m'
126- docker exec -t tue-env bash -c ' source ~/.bashrc; catkin config --workspace ${TUE_SYSTEM_DIR} --skiplist ' " ${SKIPLIST} "
125+ echo -e ' \e[35m\e[1mcatkin config --workspace ${TUE_ENV_WS_DIR} --skiplist ' " ${SKIPLIST} " ' \e[0m'
126+ # TODO(anyone): remove variable logic when tue-env is updated to new variable names
127+ docker exec -t tue-env bash -c ' source ~/.bashrc; [[ -v TUE_ENV_WS_DIR || ! -v TUE_WS_DIR ]] || TUE_ENV_WS_DIR=${TUE_WS_DIR}; catkin config --workspace ${TUE_ENV_WS_DIR} --skiplist ' " ${SKIPLIST} "
127128fi
128129
129130echo -e " \e[35m\e[1mtue-make --no-status -DCATKIN_ENABLE_TESTING=OFF python_orocos_kdl" " ${INSTALL_BUILD_PKGS[*]} " " ${BUILD_PKGS[*]} " " \e[0m"
@@ -132,8 +133,9 @@ docker exec -t tue-env bash -c "source ~/.bashrc; tue-make --no-status -DCATKIN_
132133
133134if [ -n " ${SKIPLIST} " ]
134135then
135- echo -e ' \e[35m\e[1mcatkin config --workspace ${TUE_SYSTEM_DIR} --no-skiplist\e[0m'
136- docker exec -t tue-env bash -c ' source ~/.bashrc; catkin config --workspace ${TUE_SYSTEM_DIR} --no-skiplist' # Clear skiplist
136+ echo -e ' \e[35m\e[1mcatkin config --workspace ${TUE_ENV_WS_DIR} --no-skiplist\e[0m'
137+ # TODO(anyone): remove variable logic when tue-env is updated to new variable names
138+ docker exec -t tue-env bash -c ' source ~/.bashrc; [[ -v TUE_ENV_WS_DIR || ! -v TUE_WS_DIR ]] || TUE_ENV_WS_DIR=${TUE_WS_DIR}; catkin config --workspace ${TUE_ENV_WS_DIR} --no-skiplist' # Clear skiplist
137139fi
138140
139141# Allow everyone to read ~/.cache/pip folder for caching inside CI pipelines
Original file line number Diff line number Diff line change 1919 shift
2020done
2121
22- TUE_SYSTEM_DIR=$( docker exec -t tue-env bash -c ' source ~/.bashrc; echo "${TUE_SYSTEM_DIR}"' | tr -d ' \r' )
22+ # TODO(anyone): remove variable logic when tue-env is updated to new variable names
23+ TUE_ENV_WS_DIR=$( docker exec -t tue-env bash -c ' source ~/.bashrc; [[ -v TUE_ENV_WS_DIR || ! -v TUE_WS_DIR ]] || TUE_ENV_WS_DIR=${TUE_WS_DIR}; echo "${TUE_ENV_WS_DIR}"' | tr -d ' \r' )
2324
24- echo -e " \e[35m\e[1mdocker cp tue-env:${TUE_SYSTEM_DIR } /docs .\e[0m"
25- docker cp tue-env:" ${TUE_SYSTEM_DIR } " /docs .
25+ echo -e " \e[35m\e[1mdocker cp tue-env:${TUE_ENV_WS_DIR } /docs .\e[0m"
26+ docker cp tue-env:" ${TUE_ENV_WS_DIR } " /docs .
You can’t perform that action at this time.
0 commit comments