File tree Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -479,6 +479,8 @@ stages:
479
479
runOnce :
480
480
deploy :
481
481
steps :
482
+ - download : none
483
+
482
484
- checkout : self
483
485
484
486
- checkout : templates
Original file line number Diff line number Diff line change @@ -40,16 +40,20 @@ steps:
40
40
41
41
NVD_CACHE_FILE="${DATE}-${HOUR_BY_FOUR}"
42
42
43
- echo "echoing to a file '${{ parameters.repo_root_dir }}/.nvd-cache' with value '${NVD_CACHE_FILE}'"
44
- echo "${NVD_CACHE_FILE}" > ${{ parameters.repo_root_dir }}/.nvd-cache
43
+ echo "echoing to a file '${{ parameters.repo_root_dir }}/.nvd-cache-day' with value '${DATE}'"
44
+ echo "echoing to a file '${{ parameters.repo_root_dir }}/.nvd-cache-full' with value '${NVD_CACHE_FILE}'"
45
+
46
+ # Partial (slow) download lasts 24 hours
47
+ echo "${DATE}" > ${{ parameters.repo_root_dir }}/.nvd-cache-day
48
+ # Full Cache is 4 hours, so use the by four computed variable
49
+ echo "${NVD_CACHE_FILE}" > ${{ parameters.repo_root_dir }}/.nvd-cache-full
45
50
displayName : Set NVD Cache Variable
46
51
47
52
- task : Cache@2
48
53
inputs :
49
- key : ' nvd | "$(Agent.OS)" | ${{ parameters.repo_root_dir }}/.nvd-cache'
54
+ key : ' ${{ parameters.repo_root_dir }}/.nvd-cache-day | ${{ parameters.repo_root_dir }}/.nvd-cache-full '
50
55
restoreKeys : |
51
- nvd | "$(Agent.OS)"
52
- nvd
56
+ ${{ parameters.repo_root_dir }}/.nvd-cache
53
57
path : " ${{ parameters.vulnerability_scan_database_directory }}"
54
58
displayName : Cache NVD Datatbase
55
59
Original file line number Diff line number Diff line change 18
18
inputs :
19
19
buildType : ' current'
20
20
artifact : " ${{ parameters.functional_test_artefact_name }}-$(BUILD_ATTEMPT_NUMBER)"
21
- targetPath : ${{ parameters.functional_test_artefact_name }}
21
+ targetPath : ${{ parameters.functional_test_artefact_download_location }}
22
22
displayName : " Download: Post-Deploy Test Artefacts"
23
23
24
24
# Files downloaded from artefacts seem to lose their permissions...
Original file line number Diff line number Diff line change 18
18
inputs :
19
19
buildType : ' current'
20
20
artifact : " ${{ parameters.functional_test_artefact_name }}-$(BUILD_ATTEMPT_NUMBER)"
21
- targetPath : ${{ parameters.functional_test_artefact_name }}
21
+ targetPath : ${{ parameters.functional_test_artefact_download_location }}
22
22
displayName : " Download: Post-Deploy Test Artefacts"
23
23
24
24
# Files downloaded from artefacts seem to lose their permissions...
You can’t perform that action at this time.
0 commit comments