mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
removing Jenkinsfile that we do not need (#69)
This commit is contained in:
Vendored
-29
@@ -1,29 +0,0 @@
|
||||
node {
|
||||
stage 'Checkout code'
|
||||
checkout scm
|
||||
|
||||
stage 'Download latest helm'
|
||||
def helmObject = 'helm-v2.0.0-alpha.3-linux-amd64.tar'
|
||||
def helmUrl = "https://storage.googleapis.com/kubernetes-charts-ci/helm/${helmObject}"
|
||||
sh "wget -q ${helmUrl}"
|
||||
sh "tar xfv ${helmObject}"
|
||||
|
||||
stage 'Install helm'
|
||||
sh './linux-amd64/helm init'
|
||||
|
||||
// Get list of changed applications
|
||||
def upstreamBranch = "origin/master"
|
||||
def applications = sh(script: "git diff --name-only ${upstreamBranch} | grep / | awk -F/ '{print \$1}' | uniq", returnStdout: true).trim().split()
|
||||
|
||||
for (int i = 0; i < applications.size(); i++) {
|
||||
def application = applications[i]
|
||||
stage 'Run lint on application'
|
||||
sh "./linux-amd64/helm lint ${application}"
|
||||
|
||||
stage 'Install application'
|
||||
def releaseName = sh(script: "./linux-amd64/helm install ${application}", returnStdout: true).trim()
|
||||
|
||||
stage 'Uninstall application'
|
||||
sh "./linux-amd64/helm delete ${releaseName}"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user