Zack Williams | 27cd3e5 | 2018-09-18 16:44:50 -0700 | [diff] [blame] | 1 | --- |
| 2 | # publishing artifacts to GitHub releases |
| 3 | |
| 4 | - job-template: |
| 5 | id: github-release |
| 6 | name: 'github-release_{project}' |
Joey Armstrong | 1679d43 | 2024-04-03 10:22:32 -0400 | [diff] [blame] | 7 | description: >- |
| 8 | Created by {id} job-template from |
| 9 | ci-management/jjb/github-release.yaml<br/> |
| 10 | |
Zack Williams | 27cd3e5 | 2018-09-18 16:44:50 -0700 | [diff] [blame] | 11 | 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 Armstrong | 1679d43 | 2024-04-03 10:22:32 -0400 | [diff] [blame] | 32 | credential-id: onf-voltha # github-release-token |
Zack Williams | 27cd3e5 | 2018-09-18 16:44:50 -0700 | [diff] [blame] | 33 | 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 Armstrong | af679da | 2023-01-31 14:22:41 -0500 | [diff] [blame] | 58 | |
| 59 | # [EOF] |