You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Export artifact to persist the data and/or share with the future jobs in the same workflow.
9
+
Export artifact to share with all of the subsequent jobs in the same workflow, and/or persist the data.
13
10
.PARAMETERName
14
11
Name of the artifact.
15
12
.PARAMETERPath
@@ -18,49 +15,66 @@ Path of the files that need to export as artifact.
18
15
Literal path of the files that need to export as artifact.
19
16
.PARAMETERRootDirectory
20
17
Absolute literal path of the root directory of the files for control files structure.
21
-
.PARAMETERContinueOnError
22
-
Whether the export should continue in the event of files fail to export; If not set and issue is encountered, export will stop and queued files will not export, the partial artifact availables which include files up until the issue; If set and issue is encountered, the issue file will ignore and skip, and queued files will still export, the partial artifact availables which include everything but exclude issue files.
23
18
.PARAMETERRetentionDays
24
-
Retention days of the artifact.
19
+
Retention days of the artifact, override the default value.
20
+
.PARAMETERFailFast
21
+
Whether to stop export artifact if any of file fail to export due to any of error.
22
+
23
+
By default, the failed files will skip and ignore, and all of the queued files will still export; The partial artifact will have all of the files except the failed files.
24
+
25
+
When enable, export will stop, include all of the queued files; The partial artifact will have files up until the failure.
26
+
27
+
A partial artifact will always associate and available at the end, and the size reported will be the amount of storage that the organization or user will charge for this partial artifact.
25
28
.OUTPUTS
26
29
[PSCustomObject] Metadata of the exported artifact.
[Parameter(ValueFromPipelineByPropertyName=$True)][ValidateScript({ [System.IO.Path]::IsPathRooted($_) -and (Test-Path-LiteralPath $_-PathType 'Container') }, ErrorMessage ='`{0}` is not an exist and valid directory!')][Alias('BaseRoot','Root')][String]$RootDirectory=$Env:GITHUB_WORKSPACE,
[Parameter(Mandatory=$True,Position=0,ValueFromPipelineByPropertyName=$True)][ValidatePattern('^.+$', ErrorMessage ='Value is not a single line string!')][String]$Name,
36
+
[Parameter(Mandatory=$True,ParameterSetName='Path',Position=1,ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)][SupportsWildcards()][ValidatePattern('^.+$', ErrorMessage ='Value is not a single line string!')][Alias('File','Files','Paths')][String[]]$Path,
37
+
[Parameter(Mandatory=$True,ParameterSetName='LiteralPath',ValueFromPipelineByPropertyName=$True)][ValidatePattern('^.+$', ErrorMessage ='Value is not a single line string!')][Alias('LiteralFile','LiteralFiles','LiteralPaths','LP','PSPath','PSPaths')][String[]]$LiteralPath,
[Parameter(Mandatory=$True,ParameterSetName='Single',Position=0,ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)][ValidatePattern('^.+$', ErrorMessage ='Value is not a single line string!')][String]$Name,
110
+
[Parameter(ValueFromPipelineByPropertyName=$True)][ValidatePattern('^.+$',ErrorMessage='Value is not a single line string!')][Alias('Dest','Path','Target')][String]$Destination,
0 commit comments