azure-pipelines.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Copyright 2023 Ververica Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. # http://www.apache.org/licenses/LICENSE-2.0
  7. #
  8. # Unless required by applicable law or agreed to in writing, software
  9. # distributed under the License is distributed on an "AS IS" BASIS,
  10. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. # See the License for the specific language governing permissions and
  12. # limitations under the License.
  13. # Maven
  14. # Build your Java project and run tests with Apache Maven.
  15. # Add steps that analyze code, save build artifacts, deploy, and more:
  16. # https://docs.microsoft.com/azure/devops/pipelines/languages/java
  17. trigger:
  18. branches:
  19. include:
  20. - '*' # must quote since "*" is a YAML reserved character; we want a string
  21. # Define variables:
  22. # - See tools/azure-pipelines/jobs-template.yml for a short summary of the caching
  23. # - See https://stackoverflow.com/questions/60742105/how-can-i-access-a-secret-value-from-an-azure-pipelines-expression
  24. # to understand why the secrets are handled like this
  25. variables:
  26. MAVEN_CACHE_FOLDER: $(Pipeline.Workspace)/.m2/repository
  27. E2E_CACHE_FOLDER: $(Pipeline.Workspace)/e2e_cache
  28. E2E_TARBALL_CACHE: $(Pipeline.Workspace)/e2e_artifact_cache
  29. MAVEN_OPTS: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)'
  30. CACHE_KEY: maven | $(Agent.OS) | **/pom.xml, !**/target/**
  31. CACHE_FALLBACK_KEY: maven | $(Agent.OS)
  32. FLINK_ARTIFACT_DIR: $(Pipeline.Workspace)/flink_artifact
  33. stages:
  34. # CI / PR triggered stage:
  35. - stage: ci
  36. displayName: "CI build (custom builders)"
  37. jobs:
  38. - template: tools/azure-pipelines/jobs-template.yml
  39. parameters: # see template file for a definition of the parameters.
  40. stage_name: ci_build
  41. test_pool_definition:
  42. vmImage: 'ubuntu-20.04'
  43. run_end_to_end: false
  44. jdk: 8
  45. - template: tools/azure-pipelines/jobs-template-for-self-hosted-agent.yml
  46. parameters: # see template file for a definition of the parameters.
  47. stage_name: ci_build_on_self_hosted_agent
  48. test_pool_definition:
  49. name: Flink_CDC_CI
  50. run_end_to_end: false
  51. jdk: 8