blob: a3ec8be02dd96c49cfd9404c313b17abaddc135b [file] [log] [blame]
---
# -----------------------------------------------------------------------
# Copyright 2023-2024 Open Networking Foundation Contributors
#
# 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.
# -----------------------------------------------------------------------
# SPDX-FileCopyrightText: 2023-2024 Open Networking Foundation Contributors
# SPDX-License-Identifier: Apache-2.0
# -----------------------------------------------------------------------
# Intent: Config for publishing artifacts to GitHub releases
# -----------------------------------------------------------------------
- job-template:
id: github-release-voltha
name: 'github-release_{project}'
description: |
Created by {id} job-template from ci-management/jjb/github-release.yaml<br/>
Build and publish artifacts to GitHub as a release, with checksums
triggers:
- cord-infra-gerrit-trigger-merge:
gerrit-server-name: '{gerrit-server-name}'
project-regexp: '^{project}$'
branch-regexp: '{branch-regexp}'
file-include-regexp: '{all-files-regexp}'
dependency-jobs: '{dependency-jobs}'
properties:
- cord-infra-properties:
build-days-to-keep: '{build-days-to-keep}'
artifact-num-to-keep: '{artifact-num-to-keep}'
wrappers:
- cord-pypi-wrapper:
build-timeout: '{build-timeout}'
jenkins-ssh-credential: '{gerrit-ssh-credential}'
- credentials-binding:
- text:
credential-id: onf-voltha
variable: GITHUB_TOKEN
scm:
- cord-infra-gerrit-scm:
git-url: '$GIT_URL/$GERRIT_PROJECT'
refspec: '$GERRIT_REFSPEC'
branch: '$GERRIT_BRANCH'
submodule-recursive: 'false'
choosing-strategy: gerrit
jenkins-ssh-credential: '{jenkins-ssh-credential}'
basedir: '{project}'
node: '{build-node}'
project-type: freestyle
concurrent: true
builders:
- inject:
properties-content: |
DEST_GOPATH={dest-gopath}
RELEASE_TARGETS={release-targets}
ARTIFACT_GLOB={artifact-glob}
GITHUB_ORGANIZATION={github-organization}
- shell: !include-raw-escape: ../shell/github-release.sh
# [EOF]