Skip to content

Commit

Permalink
Switch over to new artifact staging script. (Azure#14339)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdenny authored Aug 21, 2020
1 parent 07bb3a1 commit 096a838
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion eng/pipelines/templates/jobs/archetype-sdk-pom-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,24 @@ jobs:
inputs:
mavenPomFile: sdk/${{parameters.ServiceDirectory}}/${{artifact.name}}/pom.xml
goals: 'deploy'
options: '-pl ${{artifact.groupId}}:${{artifact.name}} -DaltDeploymentRepository=id::default::file://$(Build.ArtifactStagingDirectory) -Ddependency-checker -Dgpg.skip'
options: '-pl ${{artifact.groupId}}:${{artifact.name}} -DaltDeploymentRepository=id::default::file://$(System.DefaultWorkingDirectory)/build -Ddependency-checker -Dgpg.skip'
mavenOptions: '$(MemoryOptions) $(LoggingOptions)'
javaHomeOption: 'JDKVersion'
jdkVersionOption: $(JavaBuildVersion)
jdkArchitectureOption: 'x64'
publishJUnitResults: false

- task: PowerShell@2
displayName: 'Copy artifacts to staging'
inputs:
pwsh: true
workingDirectory: $(Agent.BuildDirectory)
filePath: eng/scripts/Stage-MavenPackageArtifacts.ps1
arguments: >
-SourceDirectory $(System.DefaultWorkingDirectory)/build
-TargetDirectory $(Build.ArtifactStagingDirectory)
-InformationAction Continue
- publish: $(Build.ArtifactStagingDirectory)
displayName: 'Publish Artifacts $(ArtifactName)'
artifact: '$(ArtifactName)'
Expand Down

0 comments on commit 096a838

Please sign in to comment.