Skip to content

Commit

Permalink
ci: various improvements (envoyproxy#13660)
Browse files Browse the repository at this point in the history
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
  • Loading branch information
lizan authored Oct 20, 2020
1 parent 071bab8 commit f95f539
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .azure-pipelines/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,23 @@ stages:
inputs:
pathtoPublish: "$(Build.SourcesDirectory)/generated/docs"
artifactName: docs
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))

- task: InstallSSHKey@0
inputs:
hostName: "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=="
sshPublicKey: "$(DocsPublicKey)"
sshPassphrase: "$(SshDeployKeyPassphrase)"
sshKeySecureFile: "$(DocsPrivateKey)"
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['PostSubmit'], true))
condition: and(succeeded(), eq(variables['PostSubmit'], true), ne(variables['NoSync'], true))

- script: docs/publish.sh
displayName: "Publish to GitHub"
workingDirectory: $(Build.SourcesDirectory)
env:
AZP_BRANCH: $(Build.SourceBranch)
AZP_SHA1: $(Build.SourceVersion)
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['PostSubmit'], true))
condition: and(succeeded(), eq(variables['PostSubmit'], true), ne(variables['NoSync'], true))

- job: dependencies
dependsOn: [] # this removes the implicit dependency on previous stage and causes this to run in parallel.
pool:
Expand All @@ -102,9 +102,8 @@ stages:
GITHUB_TOKEN: $(GitHubPublicRepoOnlyAccessToken)
displayName: "Verify dependency information"


- stage: sync
condition: and(succeeded(), eq(variables['PostSubmit'], true))
condition: and(succeeded(), eq(variables['PostSubmit'], true), ne(variables['NoSync'], true))
dependsOn: []
jobs:
- job: filter_example
Expand Down Expand Up @@ -145,6 +144,8 @@ stages:

- job: go_control_plane
dependsOn: []
pool:
vmImage: "ubuntu-18.04"
steps:
- task: InstallSSHKey@0
inputs:
Expand All @@ -167,12 +168,11 @@ stages:
- stage: linux_x64
dependsOn: ["precheck"]
# For master builds, continue even if precheck fails
condition: and(not(canceled()), or(succeeded(), ne(variables['Build.Reason'], 'PullRequest')))
# For post-submit builds, continue even if precheck fails
condition: and(not(canceled()), or(succeeded(), eq(variables['PostSubmit'], true)))
jobs:
- job: release
# For master builds, continue even if format fails
timeoutInMinutes: 360
timeoutInMinutes: 120
pool:
vmImage: "ubuntu-18.04"
steps:
Expand All @@ -182,11 +182,11 @@ stages:

- stage: linux_arm64
dependsOn: ["precheck"]
# For master builds, continue even if precheck fails
condition: and(not(canceled()), or(succeeded(), ne(variables['Build.Reason'], 'PullRequest')))
# For post-submit builds, continue even if precheck fails
condition: and(not(canceled()), or(succeeded(), eq(variables['PostSubmit'], true)))
jobs:
- job: release
timeoutInMinutes: 360
timeoutInMinutes: 120
pool: "arm-large"
steps:
- template: bazel.yml
Expand Down Expand Up @@ -218,7 +218,7 @@ stages:
CI_TARGET: "bazel.tsan"
compile_time_options:
CI_TARGET: "bazel.compile_time_options"
timeoutInMinutes: 360
timeoutInMinutes: 120
pool:
vmImage: "ubuntu-18.04"
steps:
Expand All @@ -229,7 +229,7 @@ stages:
- job: coverage
displayName: "linux_x64"
dependsOn: []
timeoutInMinutes: 360
timeoutInMinutes: 120
pool: "x64-large"
strategy:
maxParallel: 2
Expand Down Expand Up @@ -328,7 +328,7 @@ stages:
dependsOn: ["precheck"]
jobs:
- job: test
timeoutInMinutes: 360
timeoutInMinutes: 180
pool:
vmImage: "macos-latest"
steps:
Expand Down Expand Up @@ -362,7 +362,7 @@ stages:
dependsOn: ["precheck"]
jobs:
- job: release
timeoutInMinutes: 360
timeoutInMinutes: 120
pool:
vmImage: "windows-latest"
steps:
Expand All @@ -383,7 +383,7 @@ stages:

- job: docker
dependsOn: ["release"]
timeoutInMinutes: 360
timeoutInMinutes: 120
pool:
vmImage: "windows-latest"
steps:
Expand Down

0 comments on commit f95f539

Please sign in to comment.