From a182b62f5e914f9632ad9ed225aa536c3a00b221 Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Tue, 29 Nov 2016 11:25:33 -0800 Subject: [PATCH] [infra] generate project.yaml instead of Jenkinsfile --- infra/helper.py | 4 ++-- infra/templates.py | 26 +++----------------------- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/infra/helper.py b/infra/helper.py index 11ab7a7d8..832fb0127 100755 --- a/infra/helper.py +++ b/infra/helper.py @@ -265,8 +265,8 @@ def generate(generate_args): template_args = { 'project_name' : args.project_name } - with open(os.path.join(dir, 'Jenkinsfile'), 'w') as f: - f.write(templates.JENKINS_TEMPLATE % template_args) + with open(os.path.join(dir, 'project.yaml'), 'w') as f: + f.write(templates.PROJECT_YAML_TEMPLATE % template_args) with open(os.path.join(dir, 'Dockerfile'), 'w') as f: f.write(templates.DOCKER_TEMPLATE % template_args) diff --git a/infra/templates.py b/infra/templates.py index ecb1f6ea3..b50cdfd91 100755 --- a/infra/templates.py +++ b/infra/templates.py @@ -14,29 +14,9 @@ # ################################################################################ -JENKINS_TEMPLATE = """\ -// Copyright 2016 Google Inc. -// -// Licensed 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. -// -//////////////////////////////////////////////////////////////////////////////// - -def libfuzzerBuild = fileLoader.fromGit('infra/libfuzzer-pipeline.groovy', - 'https://github.com/google/oss-fuzz.git') - -libfuzzerBuild { - git = "put git url here" -} +PROJECT_YAML_TEMPLATE = """\ +homepage: "" +primary_contact: "" """ DOCKER_TEMPLATE = """\