Skip to content

Instantly share code, notes, and snippets.

@drmmr763
Last active October 24, 2017 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drmmr763/7250f608771c7d3789066446a57b00d6 to your computer and use it in GitHub Desktop.
Save drmmr763/7250f608771c7d3789066446a57b00d6 to your computer and use it in GitHub Desktop.
run akeeba backup cli from jenkins, catch non fatal warnings
node('ampsnet') {
stage('backup-att') {
dir('/home/akeeba/cli') {
try {
def statusCode = sh returnStatus: true, script: 'php backup.php --profile=1'
} catch(Exception e) {
if (statusCode < 2) {
currentBuild.result = 'SUCCESS'
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment