Skip to content

Commit

Permalink
jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jredbeard committed Feb 4, 2017
1 parent cfd4355 commit 9d88934
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
28 changes: 9 additions & 19 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
#!groovy
pipeline {
agent any

stages {
stage('Build') {
steps {
properties([pipelineTriggers([[$class: 'GitHubPushTrigger']])])
checkout scm
sh 'ciscripts/triggerbuild.sh'
}
}
}
post {
success {
sh 'ciscripts/buildsuccess.sh'
}
failure {
sh 'ciscripts/buildfailure.sh'
}
node {
try {
properties([pipelineTriggers([[$class: 'GitHubPushTrigger']])])
checkout scm
sh 'ciscripts/triggerbuild.sh'
sh 'ciscripts/buildsuccess.sh'
} catch (err) {
currentBuild.results = 'FAILURE'
sh 'ciscripts/buildfailure.sh'
}
}
1 change: 1 addition & 0 deletions ciscripts/triggerbuild.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
sh $WORKSPACE/ciscripts/buildpending.sh
if sh $WORKSPACE/ciscripts/buildscript.sh; then
echo BUILD SUCCESS
Expand Down

0 comments on commit 9d88934

Please sign in to comment.