diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f17dde8..7dc66ee 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,48 +1,49 @@ -trigger: - - master - -jobs: -- job: Build - timeoutInMinutes: 180 - - 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' +trigger: + - master + +jobs: +- job: Build + timeoutInMinutes: 180 + + 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: + sourceFolder: $(workingDirectory)/bin/targets/x86/64 + contents: '*' + targetFolder: $(Build.ArtifactStagingDirectory) + + - task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact: drop'