1

In github actions, we can set this using

- name: Build with Maven
  working-directory: ./VaultService
  run: mvn clean package --file pom.xml
  env:
    CI: false

But there is no working-directory option in azure devops.

Even I tried below one, but it is not building in the VaulService folder.

- task: Maven@3
  inputs:
    mavenPomFile: 'pom.xml'
    goals: 'clean package'
    options: '-DbuildDirectory=VaultService'
    publishJUnitResults: false
    javaHomeOption: 'JDKVersion'
    mavenVersionOption: 'Default'
    mavenAuthenticateFeed: false
    effectivePomSkip: false
    sonarQubeRunAnalysis: false
Sara June
  • 389
  • 4
  • 15

0 Answers0