@@ -3,14 +3,11 @@ parameters:
3
3
# props:
4
4
# - path
5
5
# - condition
6
+ # - archiveFileName
7
+ # - archiveDir
6
8
- name : artifacts
7
9
type : object
8
10
default : {}
9
- # the path to store the 7z file
10
- # the file is overwritten for each artifact
11
- - name : uploadPath
12
- type : string
13
- default : $(Build.ArtifactStagingDirectory)/artifact_zip_upload.7z
14
11
15
12
steps :
16
13
- ${{ each artifact in parameters.artifacts }} :
@@ -19,16 +16,16 @@ steps:
19
16
rootFolderOrFile : ${{artifact.path}}
20
17
archiveType : 7z
21
18
sevenZipCompression : ultra
22
- archiveFile : ${{parameters.uploadPath }}
19
+ archiveFile : ${{artifact.archiveDir}}/${{artifact.archiveFileName }}
23
20
replaceExistingArchive : true
24
21
displayName : Compress ${{artifact.path}}
25
22
${{ if artifact.condition }} :
26
23
condition : ${{artifact.condition}}
27
24
28
- - task : PublishBuildArtifacts@1
29
- inputs :
30
- PathtoPublish : ${{parameters.uploadPath}}
31
- ArtifactName : ${{artifact.path }}
32
- displayName : Upload ${{artifact.path }}
33
- ${{ if artifact.condition }} :
34
- condition : ${{artifact.condition}}
25
+ - template : ./publish.yml
26
+ parameters :
27
+ artifacts :
28
+ - filename : ${{artifact.archiveFileName }}
29
+ dir : ${{artifact.archiveDir }}
30
+ ${{ if artifact.condition }} :
31
+ condition : ${{artifact.condition}}
0 commit comments