blob: dbb08e38c9255efb0f2a5155cb5e3cfcb83f8bab [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'
Zack Williams66eef762018-05-07 17:06:03 -070017 description: |
18 Created by publish-helm-repo job-template from ci-management/jjb/helm.yaml
Zack Williamsa8f3b842018-05-04 17:21:13 -070019
20 triggers:
21 - cord-infra-gerrit-trigger-merge:
22 gerrit-server-name: '{gerrit-server-name}'
23 project-regexp: '{project-regexp}'
24 branch-regexp: '{branch-regexp}'
25 file-include-regexp: '{all-files-regexp}'
26 dependency-jobs: '{dependency-jobs}'
27
28 properties:
29 - cord-infra-properties:
30 build-days-to-keep: '{build-days-to-keep}'
31 artifact-num-to-keep: '{artifact-num-to-keep}'
32
33 wrappers:
34 - lf-infra-wrappers:
35 build-timeout: '{build-timeout}'
36 jenkins-ssh-credential: '{jenkins-ssh-credential}'
37
38 scm:
39 - lf-infra-gerrit-scm:
40 git-url: '$GIT_URL/$GERRIT_PROJECT'
Zack Williams58750872018-05-07 17:35:45 -070041 refspec: ''
Zack Williamsa8f3b842018-05-04 17:21:13 -070042 branch: '$GERRIT_BRANCH'
43 submodule-recursive: 'false'
Zack Williams58750872018-05-07 17:35:45 -070044 choosing-strategy: default
Zack Williamsa8f3b842018-05-04 17:21:13 -070045 jenkins-ssh-credential: '{jenkins-ssh-credential}'
46
47 node: '{build-node}'
48 project-type: freestyle
49 concurrent: false
50
51 builders:
52 - shell: |
53 helm init --client-only
Zack Williams58750872018-05-07 17:35:45 -070054 helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
Zack Williamsa8f3b842018-05-04 17:21:13 -070055 ./scripts/helmrepo.sh
56
57# publish over ssh: https://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.ssh
58 publishers:
59 - ssh:
60 site: 'CORD Wiki'
61 source: 'chart_repo/**'
62 remove-prefix: 'chart_repo'
Zack Williams58750872018-05-07 17:35:45 -070063 target: '//var/www/guide/charts/$GERRIT_BRANCH'
Zack Williamsa8f3b842018-05-04 17:21:13 -070064