summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Wosiek <piotrwosiek@onet.eu>2019-04-26 14:26:41 +0200
committerPiotr Wosiek <piotrwosiek@onet.eu>2019-04-26 14:26:41 +0200
commit3670a3cff8cd485f5efa0baffda28e0562b2da69 (patch)
tree1dcbd93b16054348ce6e74d4cb1b4571cc80ae2b
parent052072ff19a7726731ce962a84603b47286d2776 (diff)
downloadgitlab-ce-3670a3cff8cd485f5efa0baffda28e0562b2da69.tar.gz
Update .NET Core YAML template
Improve indent for cache paths
-rw-r--r--lib/gitlab/ci/templates/dotNET-Core.yml21
1 files changed, 10 insertions, 11 deletions
diff --git a/lib/gitlab/ci/templates/dotNET-Core.yml b/lib/gitlab/ci/templates/dotNET-Core.yml
index 1edbdd71257..558ca3d22e1 100644
--- a/lib/gitlab/ci/templates/dotNET-Core.yml
+++ b/lib/gitlab/ci/templates/dotNET-Core.yml
@@ -46,19 +46,18 @@ stages:
# With global cache rule, cached dependencies will be downloaded before every job
# and then unpacked to the paths as specified below.
cache:
-# Per-stage and per-branch caching.
+ # Per-stage and per-branch caching.
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
paths:
- # Specify three paths that should be cached:
- #
- # 1) Main JSON file holding information about package dependency tree, packages versions,
- # frameworks etc. It also holds information where to the dependencies were restored.
- - '$SOURCE_CODE_PATH$OBJECTS_DIRECTORY/project.assets.json'
- # 2) Other NuGet and MSBuild related files. Also needed.
- - '$SOURCE_CODE_PATH$OBJECTS_DIRECTORY/*.csproj.nuget.*'
- # 3) Path to the directory where restored dependencies are kept.
- - '$NUGET_PACKAGES_DIRECTORY'
- #
+ # Specify three paths that should be cached:
+ #
+ # 1) Main JSON file holding information about package dependency tree, packages versions,
+ # frameworks etc. It also holds information where to the dependencies were restored.
+ - '$SOURCE_CODE_PATH$OBJECTS_DIRECTORY/project.assets.json'
+ # 2) Other NuGet and MSBuild related files. Also needed.
+ - '$SOURCE_CODE_PATH$OBJECTS_DIRECTORY/*.csproj.nuget.*'
+ # 3) Path to the directory where restored dependencies are kept.
+ - '$NUGET_PACKAGES_DIRECTORY'
# 'pull-push' policy means that latest cache will be downloaded (if exists)
# before executing the job, and a newer version will be uploaded afterwards.
# Such setting saves time when there are no changes in referenced third-party