Re: Pipeline script for Build Trigger

2016-08-12 Thread John Engelman
I was able to get the branch to enable the trigger by adding the following to my Jenkinsfile: properties([ pipelineTriggers([ [$class: "GitHubPushTrigger"] ]) ]) I then manually executed a Branch Index on the parent job and the resulting PR builds had the trigger on push setting

Pipeline: Configure Git include regions doesn't work

2016-05-19 Thread John Engelman
I can't seem to figure out how to configure include regions for the Git plugin when defining a pipeline. They don't seem to be adhered to. This is what I currently have: checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [ [url: 'g...@gi

Re: pipeline: Retrieve exit Code from 'sh' step and perform logic

2016-05-19 Thread John Engelman
I finally found this (https://issues.jenkins-ci.org/browse/JENKINS-26133) which addresses my issue. On Thursday, May 19, 2016 at 1:55:24 PM UTC-5, John Engelman wrote: > > Is there a way to perform conditional logic in my pipeline based on the > exit code from a 'sh' step?

pipeline: Retrieve exit Code from 'sh' step and perform logic

2016-05-19 Thread John Engelman
Is there a way to perform conditional logic in my pipeline based on the exit code from a 'sh' step? Basically, I want to execute different behavior based on that. In this case it is Terraform which will output different exit codes based on the results of a 'terraform plan' -- You received this