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