| --- |
| # CORD helm chart publishing tasks |
| |
| - project: |
| name: helm-repo |
| |
| # add repos that have documentation to the project list in both jobs |
| jobs: |
| - 'publish-helm-repo': |
| project-regexp: '^(helm-charts)$' |
| branch-regexp: '{supported-branches-regexp}' |
| |
| |
| - job-template: |
| id: publish-helm-repo |
| name: 'publish-helm-repo' |
| description: | |
| Created by publish-helm-repo job-template from ci-management/jjb/helm.yaml |
| |
| triggers: |
| - cord-infra-gerrit-trigger-merge: |
| gerrit-server-name: '{gerrit-server-name}' |
| project-regexp: '{project-regexp}' |
| branch-regexp: '{branch-regexp}' |
| file-include-regexp: '{all-files-regexp}' |
| dependency-jobs: '{dependency-jobs}' |
| |
| properties: |
| - cord-infra-properties: |
| build-days-to-keep: '{build-days-to-keep}' |
| artifact-num-to-keep: '{artifact-num-to-keep}' |
| |
| wrappers: |
| - lf-infra-wrappers: |
| build-timeout: '{build-timeout}' |
| jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| |
| scm: |
| - lf-infra-gerrit-scm: |
| git-url: '$GIT_URL/$GERRIT_PROJECT' |
| refspec: '' |
| branch: '$GERRIT_BRANCH' |
| submodule-recursive: 'false' |
| choosing-strategy: default |
| jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| |
| node: '{build-node}' |
| project-type: freestyle |
| concurrent: false |
| |
| builders: |
| - shell: | |
| #!/usr/bin/env bash |
| set -eu -o pipefail |
| |
| # Set up the ssh host keys for the docs host |
| mkdir -p ~/.ssh |
| echo '{docs-ssh-host-key}' >> ~/.ssh/known_hosts |
| |
| # Setup and build the helm repo |
| helm init --client-only |
| helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/ |
| helm repo add rook-beta https://charts.rook.io/beta |
| ./scripts/helmrepo.sh |
| |
| # Copy repo to host |
| rsync -rvzh --delete chart_repo/ {docs-ssh-host}:/var/www/charts/$GERRIT_BRANCH |
| |