rmetzger commented on a change in pull request #10976: [FLINK-13978][build system] Add experimental support for building on Azure Pipelines URL: https://github.com/apache/flink/pull/10976#discussion_r378161079
########## File path: azure-pipelines.yml ########## @@ -13,23 +13,44 @@ # See the License for the specific language governing permissions and # limitations under the License. +# +# This file defines an Azure Pipeline build for testing Flink. It is intended to be used +# with a free Azure Pipelines account. +# It has the following features: +# - default builds for pushes / pull requests to a Flink fork and custom AZP account +# - end2end tests +# +# +# For the "apache/flink" repository, we are using the pipeline definition located in +# tools/azure-pipelines/build-apache-repo.yml +# That file points to custom, self-hosted build agents for faster pull request build processing and +# integration with Flinkbot. +# -trigger: - branches: - include: - - '*' resources: containers: - # Container with Maven 3.2.5 to have the same environment everywhere. + # Container with Maven 3.2.5, SSL to have the same environment everywhere. - container: flink-build-container - image: rmetzger/flink-ci:3 - repositories: - - repository: templates - type: github - name: flink-ci/flink-azure-builds - endpoint: flink-ci + image: rmetzger/flink-ci:ubuntu-jdk8-amd64-e005e00 + +variables: + MAVEN_CACHE_FOLDER: $(Pipeline.Workspace)/.m2/repository + MAVEN_OPTS: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)' + CACHE_KEY: maven | $(Agent.OS) | **/pom.xml, !**/target/** + CACHE_FALLBACK_KEY: maven | $(Agent.OS) + CACHE_FLINK_DIR: $(Pipeline.Workspace)/flink_cache + jobs: -- template: flink-build-jobs.yml@templates + - template: tools/azure-pipelines/jobs-template.yml + parameters: + stage_name: ci_build + test_pool_definition: Review comment: This defines the hardware pool for compilation and unit test execution in the `job-template.yml`. I will add some clarifying comments into the source. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services