Skip to content

Commit 98d5034

Browse files
authored
Merge pull request #560 from oracle/fix-quality
Add Helm install to quality pipeline
2 parents 19f44f9 + 13d6f44 commit 98d5034

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

wercker.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ build:
4040
code: |
4141
#!/bin/bash
4242
echo @@ "Helm installation starts"
43-
curl -LO http://kubernetes-helm.storage.googleapis.com/helm-v2.8.2-linux-amd64.tar.gz
43+
export HELM_VERSION=${HELM_VERSION:-v2.11.0}
44+
curl -LO http://kubernetes-helm.storage.googleapis.com/helm-${HELM_VERSION}-linux-amd64.tar.gz
4445
mkdir /tmp/helm
45-
tar xzf helm-v2.8.2-linux-amd64.tar.gz -C /tmp/helm
46+
tar xzf helm-${HELM_VERSION}-linux-amd64.tar.gz -C /tmp/helm
4647
chmod +x /tmp/helm/linux-amd64/helm
4748
mv /tmp/helm/linux-amd64/helm /usr/local/bin/
4849
rm -rf /tmp/helm
50+
helm version
4951
echo @@ "Helm is installed."
5052
- wercker/maven:
5153
goals: clean install
@@ -207,6 +209,20 @@ quality:
207209
name: Install pre-reqs
208210
code: |
209211
yum -y install tar gzip procps
212+
- script:
213+
name: Install helm
214+
code: |
215+
#!/bin/bash
216+
echo @@ "Helm installation starts"
217+
export HELM_VERSION=${HELM_VERSION:-v2.11.0}
218+
curl -LO http://kubernetes-helm.storage.googleapis.com/helm-${HELM_VERSION}-linux-amd64.tar.gz
219+
mkdir /tmp/helm
220+
tar xzf helm-${HELM_VERSION}-linux-amd64.tar.gz -C /tmp/helm
221+
chmod +x /tmp/helm/linux-amd64/helm
222+
mv /tmp/helm/linux-amd64/helm /usr/local/bin/
223+
rm -rf /tmp/helm
224+
helm version
225+
echo @@ "Helm is installed."
210226
- wercker/maven:
211227
profiles: build-sonar
212228
maven_opts: -Dsonar.login=${SONAR_LOGIN} -Dsonar.password=${SONAR_PASSWORD} -Dsonar.host.url=${SONAR_HOST}

0 commit comments

Comments
 (0)