aws-toolkit-azure-devops icon indicating copy to clipboard operation
aws-toolkit-azure-devops copied to clipboard

AWSShellScript@1 can't locate the file in workingDirectory

Open sreeprasadn opened this issue 1 year ago • 3 comments

Describe the bug

To reproduce

  1. Azure Pipeline step include two tasks. Script lists the files in workingDirectory and then AWSShellScript to run the script from workingDirectory
steps:
  - checkout: GunslingerRepo
  - checkout: self

  - script: |
      ls
    displayName: Validate variable 
    workingDirectory: '$(System.DefaultWorkingDirectory)/temp/'

  - task: AWSShellScript@1
    displayName: 'Functional Test'
    inputs:
      awsCredentials: 'terraform-azuredevops-development'
      regionName: 'eu-central-1'
      scriptType: 'filePath'
      arguments: '${{parameters.branch}} ${{parameters.validation}} ${{parameters.dataflow}} ${{parameters.iterations}} $(case1) $(case2) $(case3) $(case4)'
      filePath: ./functional-test.sh
      workingDirectory: '$(System.DefaultWorkingDirectory)/temp/'

Expected behavior

Expected the file function-test.sh in workingDirectory to be found and executed successfully.

Screenshots

The first task lists the files in the workingDirectory: image

AWSShellScript can't find the file from workingDirectory

image

Your Environment

  • On-prem or cloud based?: Azure DevOps
  • Azure DevOps version: Version Dev19.M212.1 (AzureDevOps_M212_20221030.1)
  • AWS Toolkit for Azure DevOps version: 1.13.0

Additional context

sreeprasadn avatar Nov 09 '22 10:11 sreeprasadn