Skip to content
Snippets Groups Projects
Commit 7ffb36d1 authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

ci: adjust comment nesting


Hash-or-pound comments are valid for both YAML and bash. Adjust all the
comments that used bash-level nesting by accident back to YAML-level.

Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent 4a0fdb7d
No related branches found
No related tags found
1 merge request!24ci: cache repo mirror, not workspace, expand docs
Pipeline #10713 failed
...@@ -97,8 +97,8 @@ reuse: ...@@ -97,8 +97,8 @@ reuse:
paths: paths:
- $CI_ONIRO_MANIFEST_MIRROR_REPO_DIR - $CI_ONIRO_MANIFEST_MIRROR_REPO_DIR
before_script: before_script:
# Define helper functions to generate GitLab fold markers.
- | - |
# Define helper functions to generate GitLab fold markers.
function gl_section_open() { function gl_section_open() {
printf '\e[0K''section_start'':%s:%s\r\e[0K%s\n' "$(date +%s)" "$1" "$2" printf '\e[0K''section_start'':%s:%s\r\e[0K%s\n' "$(date +%s)" "$1" "$2"
...@@ -112,9 +112,9 @@ reuse: ...@@ -112,9 +112,9 @@ reuse:
printf '\e[0K''section_end'':%s:%s\r\e[0K\n' "$(date +%s)" "$1" printf '\e[0K''section_end'':%s:%s\r\e[0K\n' "$(date +%s)" "$1"
} }
# Query system information. This is mostly useful for forensics, when # Query system information. This is mostly useful for forensics, when
# something goes wrong and access to basic information of this type can # something goes wrong and access to basic information of this type can
# help to uncover the problem. # help to uncover the problem.
- gl_section_open_collapsed system_info "Querying system information" - gl_section_open_collapsed system_info "Querying system information"
- id - id
- uname -a - uname -a
...@@ -160,9 +160,9 @@ reuse: ...@@ -160,9 +160,9 @@ reuse:
- repo sync --force-sync || ( rm -rf .repo && repo init --mirror --manifest-url "$CI_ONIRO_MANIFEST_MIRROR_REPO_URL" --manifest-branch "$CI_ONIRO_MANIFEST_MIRROR_REPO_REV" --no-clone-bundle && repo sync) - repo sync --force-sync || ( rm -rf .repo && repo init --mirror --manifest-url "$CI_ONIRO_MANIFEST_MIRROR_REPO_URL" --manifest-branch "$CI_ONIRO_MANIFEST_MIRROR_REPO_REV" --no-clone-bundle && repo sync)
- gl_section_close repo_mirror_setup - gl_section_close repo_mirror_setup
# Create a repo workspace using the mirror as reference. This is fairly # Create a repo workspace using the mirror as reference. This is fairly
# efficient, as repo will hardlink files (assuming they live on the same # efficient, as repo will hardlink files (assuming they live on the same
# filesystem) and avoid bulk of the network traffic. # filesystem) and avoid bulk of the network traffic.
- gl_section_open_collapsed repo_workspace_setup "Setting up repo workspace" - gl_section_open_collapsed repo_workspace_setup "Setting up repo workspace"
- rm -rf "$CI_ONIRO_REPO_WORKSPACE_DIR" && mkdir -p "$CI_ONIRO_REPO_WORKSPACE_DIR" - rm -rf "$CI_ONIRO_REPO_WORKSPACE_DIR" && mkdir -p "$CI_ONIRO_REPO_WORKSPACE_DIR"
- pushd "$CI_ONIRO_REPO_WORKSPACE_DIR" - pushd "$CI_ONIRO_REPO_WORKSPACE_DIR"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment