blob: 7d956592ad99374fa113c1f1eccb8fd3de5400a1 [file] [log] [blame]
Zack Williamsa8f3b842018-05-04 17:21:13 -07001---
2# CORD helm chart publishing tasks
3
4- project:
5 name: helm-repo
6
7 # add repos that have documentation to the project list in both jobs
8 jobs:
9 - 'publish-helm-repo':
10 project-regexp: '^(helm-charts)$'
11 branch-regexp: '{supported-branches-regexp}'
12
13
14- job-template:
15 id: publish-helm-repo
16 name: 'publish-helm-repo'
17
18 triggers:
19 - cord-infra-gerrit-trigger-merge:
20 gerrit-server-name: '{gerrit-server-name}'
21 project-regexp: '{project-regexp}'
22 branch-regexp: '{branch-regexp}'
23 file-include-regexp: '{all-files-regexp}'
24 dependency-jobs: '{dependency-jobs}'
25
26 properties:
27 - cord-infra-properties:
28 build-days-to-keep: '{build-days-to-keep}'
29 artifact-num-to-keep: '{artifact-num-to-keep}'
30
31 wrappers:
32 - lf-infra-wrappers:
33 build-timeout: '{build-timeout}'
34 jenkins-ssh-credential: '{jenkins-ssh-credential}'
35
36 scm:
37 - lf-infra-gerrit-scm:
38 git-url: '$GIT_URL/$GERRIT_PROJECT'
39 refspec: '$GERRIT_REFSPEC'
40 branch: '$GERRIT_BRANCH'
41 submodule-recursive: 'false'
42 choosing-strategy: gerrit
43 jenkins-ssh-credential: '{jenkins-ssh-credential}'
44
45 node: '{build-node}'
46 project-type: freestyle
47 concurrent: false
48
49 builders:
50 - shell: |
51 helm init --client-only
52 ./scripts/helmrepo.sh
53
54# publish over ssh: https://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.ssh
55 publishers:
56 - ssh:
57 site: 'CORD Wiki'
58 source: 'chart_repo/**'
59 remove-prefix: 'chart_repo'
60 target: '//var/www/guide/charts/$GERRIT_BRANCH/'
61