blob: 28e31e4fd3994c76d37dc4e08ed8b22424c83e02 [file] [log] [blame]
#
# 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.
#
{% from 'shared_jinja.yml' import github_access with context %}
---
image_resource: &docker-geode-build-image
type: docker-image
source:
username: ((!docker-username))
password: ((!docker-password))
repository: gcr.io/((gcp-project))/metric-tools
tag: latest
resources:
- name: once-a-day
type: time
source:
interval: 24h
- name: geode-ci
type: git
source:
depth: 1
uri: https://github.com/apache/geode.git
branch: ((geode-build-branch))
paths:
- ci/*
{{ github_access() | indent(4) }}
{%- macro metrics_job(job_name) %}
- name: Geode{{job_name}}Metrics
serial: true
public: true
plan:
- get: geode-ci
- get: once-a-day
trigger: true
- task: get_metrics
config:
inputs:
- name: geode-ci
outputs:
- name: workspace
platform: linux
image_resource: *docker-geode-build-image
run:
path: /usr/bin/python3
args:
- geode-ci/ci/bin/concourse_job_performance.py
- ((concourse-url))
- ((pipeline-prefix))main
- {{job_name}}
- 50
{%- endmacro %}
jobs:
{{- metrics_job('Build') }}
{%- for test in (tests) if not test.name=="StressNew" -%}
{%- for java_test_version in (java_test_versions) %}
{{ metrics_job(test.name+'Test'+java_test_version.name) }}
{%- endfor -%}
{%- endfor -%}