|
|
|
@ -121,51 +121,51 @@ jobs:
|
|
|
|
|
- checkout: none
|
|
|
|
|
|
|
|
|
|
- task: DownloadPipelineArtifact@2
|
|
|
|
|
displayName: Download the Reference Assembly Build Artifact
|
|
|
|
|
displayName: Download the New Assembly Build Artifact
|
|
|
|
|
inputs:
|
|
|
|
|
source: 'specific' # Options: current, specific
|
|
|
|
|
source: 'current' # Options: current, specific
|
|
|
|
|
#preferTriggeringPipeline: false # Optional
|
|
|
|
|
#tags: # Optional
|
|
|
|
|
artifact: '$(NugetPackageName)' # Optional
|
|
|
|
|
#patterns: '**' # Optional
|
|
|
|
|
path: '$(System.ArtifactsDirectory)/current-artifacts'
|
|
|
|
|
project: '$(System.TeamProjectId)' # Required when source == Specific
|
|
|
|
|
pipeline: '$(System.DefinitionId)' # Required when source == Specific
|
|
|
|
|
runVersion: 'latestFromBranch' # Required when source == Specific. Options: latest, latestFromBranch, specific
|
|
|
|
|
runBranch: 'refs/heads/$(System.PullRequest.TargetBranch)' # Required when source == Specific && runVersion == LatestFromBranch
|
|
|
|
|
path: '$(System.ArtifactsDirectory)/new-artifacts'
|
|
|
|
|
#project: # Required when source == Specific
|
|
|
|
|
#pipeline: # Required when source == Specific
|
|
|
|
|
runVersion: 'latest' # Required when source == Specific. Options: latest, latestFromBranch, specific
|
|
|
|
|
#runBranch: 'refs/heads/master' # Required when source == Specific && runVersion == LatestFromBranch
|
|
|
|
|
#runId: # Required when source == Specific && runVersion == Specific
|
|
|
|
|
|
|
|
|
|
- task: CopyFiles@2
|
|
|
|
|
displayName: Copy Nuget Assembly to current-release folder
|
|
|
|
|
displayName: Copy Artifact Assembly to new-release folder
|
|
|
|
|
inputs:
|
|
|
|
|
sourceFolder: $(System.ArtifactsDirectory)/current-artifacts # Optional
|
|
|
|
|
sourceFolder: $(System.ArtifactsDirectory)/new-artifacts # Optional
|
|
|
|
|
contents: '**/*.dll'
|
|
|
|
|
targetFolder: $(System.ArtifactsDirectory)/current-release
|
|
|
|
|
targetFolder: $(System.ArtifactsDirectory)/new-release
|
|
|
|
|
cleanTargetFolder: true # Optional
|
|
|
|
|
overWrite: true # Optional
|
|
|
|
|
flattenFolders: true # Optional
|
|
|
|
|
|
|
|
|
|
- task: DownloadPipelineArtifact@2
|
|
|
|
|
displayName: Download the New Assembly Build Artifact
|
|
|
|
|
displayName: Download the Reference Assembly Build Artifact
|
|
|
|
|
inputs:
|
|
|
|
|
source: 'current' # Options: current, specific
|
|
|
|
|
source: 'specific' # Options: current, specific
|
|
|
|
|
#preferTriggeringPipeline: false # Optional
|
|
|
|
|
#tags: # Optional
|
|
|
|
|
artifact: '$(NugetPackageName)' # Optional
|
|
|
|
|
#patterns: '**' # Optional
|
|
|
|
|
path: '$(System.ArtifactsDirectory)/new-artifacts'
|
|
|
|
|
#project: # Required when source == Specific
|
|
|
|
|
#pipeline: # Required when source == Specific
|
|
|
|
|
runVersion: 'latest' # Required when source == Specific. Options: latest, latestFromBranch, specific
|
|
|
|
|
#runBranch: 'refs/heads/master' # Required when source == Specific && runVersion == LatestFromBranch
|
|
|
|
|
path: '$(System.ArtifactsDirectory)/current-artifacts'
|
|
|
|
|
project: '$(System.TeamProjectId)' # Required when source == Specific
|
|
|
|
|
pipeline: '$(System.DefinitionId)' # Required when source == Specific
|
|
|
|
|
runVersion: 'latestFromBranch' # Required when source == Specific. Options: latest, latestFromBranch, specific
|
|
|
|
|
runBranch: 'refs/heads/$(System.PullRequest.TargetBranch)' # Required when source == Specific && runVersion == LatestFromBranch
|
|
|
|
|
#runId: # Required when source == Specific && runVersion == Specific
|
|
|
|
|
|
|
|
|
|
- task: CopyFiles@2
|
|
|
|
|
displayName: Copy Artifact Assembly to new-release folder
|
|
|
|
|
displayName: Copy Nuget Assembly to current-release folder
|
|
|
|
|
inputs:
|
|
|
|
|
sourceFolder: $(System.ArtifactsDirectory)/new-artifacts # Optional
|
|
|
|
|
sourceFolder: $(System.ArtifactsDirectory)/current-artifacts # Optional
|
|
|
|
|
contents: '**/*.dll'
|
|
|
|
|
targetFolder: $(System.ArtifactsDirectory)/new-release
|
|
|
|
|
targetFolder: $(System.ArtifactsDirectory)/current-release
|
|
|
|
|
cleanTargetFolder: true # Optional
|
|
|
|
|
overWrite: true # Optional
|
|
|
|
|
flattenFolders: true # Optional
|
|
|
|
|