Skip to content
Snippets Groups Projects

Draft: .oniro-ci: support direct merge requests in .workspace job

Closed Zygmunt Krynicki requested to merge fix/ci-without-merged-results-pipelines into kirkstone
1 file
+ 11
0
Compare changes
  • Side-by-side
  • Inline
@@ -16,6 +16,8 @@
CI_ONIRO_GIT_REPO_PATH: ""
CI_ONIRO_INSTANCE_SIZE: s3.large.8
before_script:
# Mark the project directory, which is outside of $HOME, as safe.
- git config --global --add safe.directory "$CI_PROJECT_DIR"
- test ! -e "$CI_PROJECT_DIR"/.scratch-dir-name || (
echo "precondition failed - concurrent modification of $CI_PROJECT_DIR"
&& env | grep CI_ | sort
@@ -45,6 +47,15 @@
# See the documentation of CI_ONIRO_GIT_REPO_PATH
- |
echo "DEBUG: inspecting environment details"
env | grep -E ^CI_ | sort
(
cd $CI_PROJECT_DIR
git remote -v
git branch -a
git show
)
echo "DEBUG: ..."
set -x
if [ -n "$CI_ONIRO_GIT_REPO_PATH" ]; then
if [ -n "$CI_MERGE_REQUEST_SOURCE_PROJECT_URL" ]; then
Loading