Skip to content

Commit

Permalink
Resolving working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ckairen committed Aug 23, 2021
1 parent d8f6dee commit 0e42d2a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion eng/pipelines/templates/stages/archetype-java-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,24 @@ stages:
$pomf = Get-ChildItem $(Pipeline.Workspace)/install-check-dir/${{artifact.name}}/*.pom
Rename-Item "$($pomf)" pom.xml
Write-Host "Renaming $($pomf) to pom.xml"
Copy-Item "$(System.DefaultWorkingDirectory)/eng" "$(Pipeline.Workspace)/install-check-dir/${{ artifact.name }}/eng" -Recurse
displayName: "Copy Artifacts"
- task: Maven@3
displayName: 'Install reporting tools'
inputs:
mavenPomFile: $(Pipeline.Workspace)/install-check-dir/${{ artifact.name }}/eng/code-quality-reports/pom.xml
options: "$(DefaultOptions)"
mavenOptions: "$(MemoryOptions) $(LoggingOptions)"
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
goals: 'install'

- task: Maven@3
inputs:
mavenPomFile: "$(Pipeline.Workspace)/install-check-dir/${{ artifact.name }}/pom.xml"
options: "$(DefaultOptions) -Dcheckstyle.skip=true"
options: "$(DefaultOptions) -Dcheckstyle.skip=true -DskipTests"
goals: "install"
# - pwsh: |
# dir eng
Expand Down

0 comments on commit 0e42d2a

Please sign in to comment.