Skip to content

Commit

Permalink
Specify workingDirectory for script tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckenzie committed May 21, 2020
1 parent 12f0d3c commit f9991e5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pool:

variables:
release: 'v19.07.3'
workingDirectory: '$(Build.SourcesDirectory)/openwrt'

steps:
- script: sudo apt-get -q -y install libncursesw5-dev
Expand All @@ -18,23 +19,25 @@ steps:

- script: |
cp .config openwrt/
cd openwrt/
displayName: 'Copy .config file'

- script: git checkout $(release)
workingDirectory: $(workingDirectory)
displayName: 'Checkout $(release)'

- script: |
./scripts/feeds update -a
./scripts/feeds install -a
displayName: Update package feeds
workingDirectory: $(workingDirectory)
displayName: 'Update package feeds'

- script: make
workingDirectory: $(workingDirectory)
displayName: 'Build the project'

- task: CopyFiles@2
inputs:
contents: 'bin/targets/x86/64/**'
contents: $(workingDirectory)/bin/targets/x86/64/**
targetFolder: $(Build.ArtifactStagingDirectory)

- task: PublishBuildArtifacts@1
Expand Down

0 comments on commit f9991e5

Please sign in to comment.