Last active
October 24, 2017 15:09
-
-
Save drmmr763/7250f608771c7d3789066446a57b00d6 to your computer and use it in GitHub Desktop.
run akeeba backup cli from jenkins, catch non fatal warnings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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