File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,14 @@ steps:
1919 addProjectDirToScanningExclusionList : true
2020
2121 - powershell : |
22- $prefix = 'azure-functions-java-library-sql-*'
2322 $source = 'java-library'
2423 $destination = '$(Build.ArtifactStagingDirectory)/java-library'
24+ $jar = Get-ChildItem $source/target/*.jar | Select-Object -First 1 | Select Name
25+ $jar -match '\d+\.\d+\.\d+'
26+ $version = $matches[0]
27+ $prefix = 'azure-functions-java-library-sql-'+$version
2528 New-Item $destination -ItemType Directory
26- Copy-Item "$source/pom.xml" "$destination/"
29+ Copy-Item "$source/pom.xml" "$destination/$prefix.pom "
2730 Copy-Item "$source/target/$prefix.jar" "$destination/"
2831 Copy-Item "$source/target/$prefix-javadoc.jar" "$destination/"
2932 Copy-Item "$source/target/$prefix-sources.jar" "$destination/"
You can’t perform that action at this time.
0 commit comments