Skip to content

Commit

Permalink
Set job timeout to three hours
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckenzie committed May 21, 2020
1 parent e54a661 commit 9480366
Showing 1 changed file with 45 additions and 41 deletions.
86 changes: 45 additions & 41 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,48 @@
trigger:
- master
jobs:
job: Build
timeoutInMinutes: 0

pool:
vmImage: 'ubuntu-latest'
trigger:
- master

variables:
release: 'v19.07.3'
workingDirectory: '$(Build.SourcesDirectory)/openwrt'
pool:
vmImage: 'ubuntu-latest'

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

steps:
- script: sudo apt-get -q -y install libncurses5-dev
displayName: 'Install dependencies'

- script: |
umask 0022
git clone https://git.openwrt.org/openwrt/openwrt.git
displayName: 'Clone OpenWrt git repo'

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

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

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

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

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

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
steps:
- script: sudo apt-get -q -y install libncurses5-dev
displayName: 'Install dependencies'

- script: |
umask 0022
git clone https://git.openwrt.org/openwrt/openwrt.git
displayName: 'Clone OpenWrt git repo'
- script: |
cp .config openwrt/
displayName: 'Copy .config file'
- script: git checkout $(release)
workingDirectory: $(workingDirectory)
displayName: 'Checkout $(release)'

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

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

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'

0 comments on commit 9480366

Please sign in to comment.