Skip to content
Snippets Groups Projects

oniro-ci: Add variable to specify oe-core path

Merged Pavel Zhukov requested to merge landgraf/oniro:nuts_pipeline into kirkstone
Compare and
2 files
+ 28
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -58,6 +58,20 @@
@@ -58,6 +58,20 @@
fi
fi
set +x
set +x
 
- |
 
set -x
 
if [ -n "$ONIRO_CI_OECORE_BRANCH" ]; then
 
if [ -n "$ONIRO_CI_OECORE_REPO" ]; then
 
echo "CI: Using oe-core from '$ONIRO_CI_OECORE_REPO':'$ONIRO_CI_OECORE_BRANCH' "
 
( cd "oe-core" && git remote add oecore-nut "$ONIRO_CI_OECORE_REPO" \
 
&& git fetch oecore-nut && git checkout oecore-nut/"$ONIRO_CI_OECORE_BRANCH" );
 
else
 
echo "CI: Using oe-core branch: '$ONIRO_CI_OECORE_BRANCH' "
 
( cd "oe-core" && git fetch && git checkout "$ONIRO_CI_OECORE_BRANCH" );
 
fi;
 
fi;
 
set +x
 
script:
script:
# Reload the value of SCRATCH_DIR set in the before_script phase. Those run
# Reload the value of SCRATCH_DIR set in the before_script phase. Those run
# in separate shell processes and do not share environment variables.
# in separate shell processes and do not share environment variables.
Loading