| #! Licensed to the Apache Software Foundation (ASF) under one or more |
| #! contributor license agreements. See the NOTICE file distributed with |
| #! this work for additional information regarding copyright ownership. |
| #! The ASF licenses this file to You under the Apache License, Version 2.0 |
| #! (the "License"); you may not use this file except in compliance with |
| #! the License. You may obtain a copy of the License at |
| #! |
| #! http://www.apache.org/licenses/LICENSE-2.0 |
| #! |
| #! Unless required by applicable law or agreed to in writing, software |
| #! distributed under the License is distributed on an "AS IS" BASIS, |
| #! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| #! See the License for the specific language governing permissions and |
| #! limitations under the License. |
| |
| #@ load("templates.lib.yml", |
| #@ "resource_type", |
| #@ "gcr_image_resource", |
| #@ "project_gcr_image_resource", |
| #@ "github_resource", |
| #@ "registry_image_resource", |
| #@ "semver_resource", |
| #@ "apache_directory_index_resource", |
| #@ "maven_resource", |
| #@ "build_resources", |
| #@ "build_jobs", |
| #@ "build_job_name", |
| #@ "check_source_job", |
| #@ "check_source_job_name", |
| #@ "update_pipeline_job", |
| #@ "update_pipeline_job_name", |
| #@ ) |
| #@ load("functions.lib.yml", |
| #@ "initial_version", |
| #@ "version_pattern", |
| #@ ) |
| #@ load("@ytt:data", "data") |
| #@ load("@ytt:template", "template") |
| |
| --- |
| resource_types: |
| - #@ resource_type("gci-resource", "smgoller/gci-resource") |
| - #@ resource_type("gcs-resource", "frodenas/gcs-resource") |
| - #@ resource_type("apache-directory-index-resource", "jakepivotal/apache-directory-index-resource") |
| - #@ resource_type("maven-resource", "jakepivotal/maven-resource") |
| |
| resources: |
| - #@ semver_resource("version", initial_version()) |
| - #@ gcr_image_resource("gcloud-image", "google.com/cloudsdktool/cloud-sdk", "alpine") |
| - #@ project_gcr_image_resource("task-image", "geode-native-task") |
| - #@ project_gcr_image_resource("clang-tools-image", "geode-native-clang-tools") |
| - #@ github_resource("source", data.values.github.owner, data.values.github.repository, data.values.repository.branch, ignore_paths=["ci/*", "packer/*"]) |
| - #@ template.replace(build_resources(data.values.builds, data.values.configs)) |
| - #@ registry_image_resource("ytt-image", "gerritk/ytt") |
| - #@ github_resource("ci-source", data.values.github.owner, data.values.github.repository, data.values.repository.branch, ["ci/*"]) |
| - #@ maven_resource("geode-latest", "https://maven.apachegeode-ci.info/snapshots", "org.apache.geode:apache-geode:tgz", version_pattern()) |
| #! - #@ apache_directory_index_resource("geode", "https://archive.apache.org/dist/geode/", "$VERSION", "apache-geode-$VERSION.tgz") |
| |
| jobs: |
| - #@ template.replace(build_jobs(data.values.builds, data.values.configs)) |
| - #@ check_source_job() |
| - #@ update_pipeline_job() |
| |
| groups: |
| - name: builds |
| jobs: |
| #@ for build in data.values.builds: |
| #@ for/end config in data.values.configs: |
| - #@ build_job_name(build, config) |
| #@ end |
| - #@ check_source_job_name() |
| - name: meta |
| jobs: |
| - #@ update_pipeline_job_name() |
| - name: all |
| jobs: |
| - #@ update_pipeline_job_name() |
| #@ for build in data.values.builds: |
| #@ for/end config in data.values.configs: |
| - #@ build_job_name(build, config) |
| #@ end |
| - #@ check_source_job_name() |