mirror of https://github.com/google/oss-fuzz.git
[infra] generate project.yaml instead of Jenkinsfile
This commit is contained in:
parent
e16ee1785b
commit
a182b62f5e
|
@ -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)
|
||||
|
|
|
@ -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: "<your_project_homepage>"
|
||||
primary_contact: "<primary_contact_email>"
|
||||
"""
|
||||
|
||||
DOCKER_TEMPLATE = """\
|
||||
|
|
Loading…
Reference in New Issue