Skip to content

Commit

Permalink
changed jenkins pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
eamonkey committed Feb 24, 2018
1 parent 9cf0320 commit 2c771d5
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 30 deletions.
145 changes: 117 additions & 28 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// load pipeline functions
// Requires pipeline-github-lib plugin to load library from github

@Library('github.com/lachie83/jenkins-pipeline@dev')
@Library('github.com/EamonKeane/jenkins-pipeline@dev')

def pipeline = new io.estrado.Pipeline()

Expand Down Expand Up @@ -73,7 +73,8 @@ volumes:[
stage ('test deployment') {

container('helm') {

//ensures that helm is initialised in cluster with appropriate credentials before continuing
sh "helm init --wait --service-account tiller"
// run helm chart linter
pipeline.helmLint(chart_dir)

Expand Down Expand Up @@ -131,6 +132,8 @@ volumes:[
if (env.BRANCH_NAME =~ "PR-*" ) {
stage ('deploy to k8s') {
container('helm') {
//ensures that helm is initialised in cluster with appropriate credentials before continuing
sh "helm init --wait --service-account tiller"
// Deploy using Helm chart
pipeline.helmDeploy(
dry_run : false,
Expand Down

0 comments on commit 2c771d5

Please sign in to comment.