blob: a3ec8be02dd96c49cfd9404c313b17abaddc135b [file] [log] [blame]
Joey Armstrong2097d3e2023-03-26 10:32:03 -04001---
Joey Armstrong4d612a92024-04-24 15:30:49 -04002
3# -----------------------------------------------------------------------
4# Copyright 2023-2024 Open Networking Foundation Contributors
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17# -----------------------------------------------------------------------
18# SPDX-FileCopyrightText: 2023-2024 Open Networking Foundation Contributors
19# SPDX-License-Identifier: Apache-2.0
20# -----------------------------------------------------------------------
21# Intent: Config for publishing artifacts to GitHub releases
22# -----------------------------------------------------------------------
Joey Armstrong2097d3e2023-03-26 10:32:03 -040023
24- job-template:
25 id: github-release-voltha
26 name: 'github-release_{project}'
27 description: |
28 Created by {id} job-template from ci-management/jjb/github-release.yaml<br/>
29 Build and publish artifacts to GitHub as a release, with checksums
30
31 triggers:
32 - cord-infra-gerrit-trigger-merge:
33 gerrit-server-name: '{gerrit-server-name}'
34 project-regexp: '^{project}$'
35 branch-regexp: '{branch-regexp}'
36 file-include-regexp: '{all-files-regexp}'
37 dependency-jobs: '{dependency-jobs}'
38
39 properties:
40 - cord-infra-properties:
41 build-days-to-keep: '{build-days-to-keep}'
42 artifact-num-to-keep: '{artifact-num-to-keep}'
43
44 wrappers:
45 - cord-pypi-wrapper:
46 build-timeout: '{build-timeout}'
47 jenkins-ssh-credential: '{gerrit-ssh-credential}'
48 - credentials-binding:
49 - text:
Joey Armstrong59b6b712023-04-04 10:49:05 -040050 credential-id: onf-voltha
Joey Armstrong2097d3e2023-03-26 10:32:03 -040051 variable: GITHUB_TOKEN
52
53 scm:
54 - cord-infra-gerrit-scm:
55 git-url: '$GIT_URL/$GERRIT_PROJECT'
56 refspec: '$GERRIT_REFSPEC'
57 branch: '$GERRIT_BRANCH'
58 submodule-recursive: 'false'
59 choosing-strategy: gerrit
60 jenkins-ssh-credential: '{jenkins-ssh-credential}'
61 basedir: '{project}'
62
63 node: '{build-node}'
64 project-type: freestyle
65 concurrent: true
66
67 builders:
68 - inject:
69 properties-content: |
70 DEST_GOPATH={dest-gopath}
71 RELEASE_TARGETS={release-targets}
72 ARTIFACT_GLOB={artifact-glob}
73 GITHUB_ORGANIZATION={github-organization}
74
75 - shell: !include-raw-escape: ../shell/github-release.sh
76
77# [EOF]