Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
picodata
Commits
3885999b
Commit
3885999b
authored
1 year ago
by
Дмитрий Кибирев
Committed by
Yaroslav Dynnikov
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: repair error "fatal: ambiguous argument" close
#470
parent
b23b0dd1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!816
ci: repair git error "fatal: ambiguous argument"
Pipeline
#30363
passed
1 year ago
Stage: build-base-image
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+17
-14
17 additions, 14 deletions
.gitlab-ci.yml
with
17 additions
and
14 deletions
.gitlab-ci.yml
+
17
−
14
View file @
3885999b
...
@@ -125,6 +125,8 @@ build-base-image:
...
@@ -125,6 +125,8 @@ build-base-image:
# Gitlab CI caching is shit. So we implement it manually
# Gitlab CI caching is shit. So we implement it manually
-
|
-
|
# Restore cache
# Restore cache
git fetch origin master:refs/remotes/origin/master
git branch -a
if [[ -n "$NO_CACHE" ]]; then
if [[ -n "$NO_CACHE" ]]; then
echo "Skipping restoring from cache because NO_CACHE is set"
echo "Skipping restoring from cache because NO_CACHE is set"
elif [ "$CI_COMMIT_BRANCH" == "$MAIN_BRANCH" ]; then
elif [ "$CI_COMMIT_BRANCH" == "$MAIN_BRANCH" ]; then
...
@@ -140,6 +142,21 @@ build-base-image:
...
@@ -140,6 +142,21 @@ build-base-image:
else
else
echo "No cache found"
echo "No cache found"
fi
fi
after_script
:
-
|
# Save cache
if [ "$CI_COMMIT_BRANCH" == "$MAIN_BRANCH" ]; then
ci-log-section start "save-cache" Saving cache to ${CACHE_ARCHIVE} ...
du -sh ${CACHE_PATHS} || true
TMPEXT=$RANDOM
tar -cf "${CACHE_ARCHIVE}.${TMPEXT}" ${CACHE_PATHS}
mv -f "${CACHE_ARCHIVE}.${TMPEXT}" "${CACHE_ARCHIVE}"
echo Ok
du -sh ${CACHE_ARCHIVE}
ci-log-section end "save-cache"
else
echo "Skip saving cache on a non-master branch"
fi
test-linux
:
test-linux
:
extends
:
.test
extends
:
.test
...
@@ -204,20 +221,6 @@ test-linux:
...
@@ -204,20 +221,6 @@ test-linux:
--junitxml=junit_pytest.xml
--junitxml=junit_pytest.xml
--with-webui
--with-webui
-
|
# Save cache
if [ "$CI_COMMIT_BRANCH" == "$MAIN_BRANCH" ]; then
ci-log-section start "save-cache" Saving cache to ${CACHE_ARCHIVE} ...
du -sh ${CACHE_PATHS} || true
TMPEXT=$RANDOM
tar -cf "${CACHE_ARCHIVE}.${TMPEXT}" ${CACHE_PATHS}
mv -f "${CACHE_ARCHIVE}.${TMPEXT}" "${CACHE_ARCHIVE}"
echo Ok
du -sh ${CACHE_ARCHIVE}
ci-log-section end "save-cache"
else
echo "Skip saving cache on a non-master branch"
fi
artifacts
:
artifacts
:
when
:
always
when
:
always
paths
:
paths
:
...
...
This diff is collapsed.
Click to expand it.
Дмитрий Кибирев
@kdy
mentioned in commit
ffb5f89a
·
1 year ago
mentioned in commit
ffb5f89a
mentioned in commit ffb5f89aec188cb26198a6d31d53554b00aa0d0d
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment