@@ -430,21 +430,21 @@ stages:
430430 displayName : ' Download Build Artifacts: $(NuGetArtifactName)'
431431 inputs :
432432 artifactName : ' $(NuGetArtifactName)'
433- targetPath : ' $(System.DefaultWorkingDirectory )/$(NuGetArtifactName)'
433+ targetPath : ' $(Build.ArtifactStagingDirectory )/$(NuGetArtifactName)'
434434
435435
436436 - task : DownloadPipelineArtifact@0
437437 displayName : ' Download Build Artifacts: $(VersionArtifactName)'
438438 inputs :
439439 artifactName : ' $(VersionArtifactName)'
440- targetPath : ' $(System.DefaultWorkingDirectory )/$(VersionArtifactName)'
440+ targetPath : ' $(Build.ArtifactStagingDirectory )/$(VersionArtifactName)'
441441
442442 - template : ' build/azure-templates/show-all-files.yml' # Uncomment for debugging
443443
444444 # NOTE: We are setting Build.BuildNumber here to the NuGet package version to work around the limitation that
445445 # the version cannot be passed to the Index Sources & Publish Symbols task.
446446 - powershell : |
447- $version = Get-Content '$(VersionArtifactName)/$(PackageVersionFileName)' -Raw
447+ $version = Get-Content '$(Build.ArtifactStagingDirectory)/$( VersionArtifactName)/$(PackageVersionFileName)' -Raw
448448 $vcsLabel = 'Lucene.Net_' + $version.Replace('.', '_').Replace('-', '_')
449449 Write-Host "##vso[task.setvariable variable=VCSLabel;]$vcsLabel"
450450 Write-Host "##vso[task.setvariable variable=PackageVersion;]$version"
@@ -453,7 +453,7 @@ stages:
453453 - powershell : |
454454 $files = 'build.bat','Version.props'
455455 foreach ($file in $files) {
456- Copy-Item -Path "$(VersionArtifactName)/$file" -Destination "$(Build.SourcesDirectory)/$file" -Force -ErrorAction Continue
456+ Copy-Item -Path "$(Build.ArtifactStagingDirectory)/$( VersionArtifactName)/$file" -Destination "$(Build.SourcesDirectory)/$file" -Force -ErrorAction Continue
457457 }
458458 displayName: 'Update build.bat and Version.props to build only version $(PackageVersion)'
459459 - template : ' build/azure-templates/show-all-environment-variables.yml'
@@ -486,12 +486,12 @@ stages:
486486 Contents : |
487487 LICENSE.txt
488488 NOTICE.txt
489- TargetFolder : ' $(NuGetArtifactName)'
489+ TargetFolder : ' $(Build.ArtifactStagingDirectory)/$( NuGetArtifactName)'
490490
491491 - task : ArchiveFiles@2
492492 displayName : ' Archive Binary Files'
493493 inputs :
494- rootFolderOrFile : ' $(NuGetArtifactName)'
494+ rootFolderOrFile : ' $(Build.ArtifactStagingDirectory)/$( NuGetArtifactName)'
495495 includeRootFolder : false
496496 archiveFile : ' $(Build.ArtifactStagingDirectory)/$(ReleaseArtifactName)/Apache-Lucene.Net-$(PackageVersion).bin.zip'
497497
@@ -507,6 +507,7 @@ stages:
507507 "TODO: Push release artifacts to dev (https://dist.apache.org/repos/dist/dev/lucenenet/)" + $nl + `
508508 "TODO: Start release [VOTE] (see https://www.apache.org/foundation/voting.html)" + $nl | Out-File -FilePath "$dir/RELEASE-TODO.txt" -Force
509509 displayName: 'Write RELEASE-TODO.txt'
510+
510511 - task : PublishPipelineArtifact@1
511512 displayName : ' Publish Artifact: $(ReleaseArtifactName)'
512513 inputs :
0 commit comments