blob: 1e8a10ac1e3d240f03c5d5f168c5ab27121a3064 [file] [log] [blame]
Zack Williams27cd3e52018-09-18 16:44:50 -07001---
2# publishing artifacts to GitHub releases
3
4- job-template:
5 id: github-release
6 name: 'github-release_{project}'
Joey Armstrong1679d432024-04-03 10:22:32 -04007 description: >-
8 Created by {id} job-template from
9 ci-management/jjb/github-release.yaml<br/>
10
Zack Williams27cd3e52018-09-18 16:44:50 -070011 Build and publish artifacts to GitHub as a release, with checksums
12
13 triggers:
14 - cord-infra-gerrit-trigger-merge:
15 gerrit-server-name: '{gerrit-server-name}'
16 project-regexp: '^{project}$'
17 branch-regexp: '{branch-regexp}'
18 file-include-regexp: '{all-files-regexp}'
19 dependency-jobs: '{dependency-jobs}'
20
21 properties:
22 - cord-infra-properties:
23 build-days-to-keep: '{build-days-to-keep}'
24 artifact-num-to-keep: '{artifact-num-to-keep}'
25
26 wrappers:
27 - cord-pypi-wrapper:
28 build-timeout: '{build-timeout}'
29 jenkins-ssh-credential: '{gerrit-ssh-credential}'
30 - credentials-binding:
31 - text:
Joey Armstrong1679d432024-04-03 10:22:32 -040032 credential-id: onf-voltha # github-release-token
Zack Williams27cd3e52018-09-18 16:44:50 -070033 variable: GITHUB_TOKEN
34
35 scm:
36 - cord-infra-gerrit-scm:
37 git-url: '$GIT_URL/$GERRIT_PROJECT'
38 refspec: '$GERRIT_REFSPEC'
39 branch: '$GERRIT_BRANCH'
40 submodule-recursive: 'false'
41 choosing-strategy: gerrit
42 jenkins-ssh-credential: '{jenkins-ssh-credential}'
43 basedir: '{project}'
44
45 node: '{build-node}'
46 project-type: freestyle
47 concurrent: true
48
49 builders:
50 - inject:
51 properties-content: |
52 DEST_GOPATH={dest-gopath}
53 RELEASE_TARGETS={release-targets}
54 ARTIFACT_GLOB={artifact-glob}
55 GITHUB_ORGANIZATION={github-organization}
56
57 - shell: !include-raw-escape: shell/github-release.sh
Joey Armstrongaf679da2023-01-31 14:22:41 -050058
59# [EOF]