oreolek
/
news-script
Archived
1
0
Fork 0

Added Jenkinsfile + phpunit
default/news-script/master There was a failure building this commit Details

This commit is contained in:
Alexander Yakovlev 2019-04-16 13:19:28 +07:00
parent ed9bb62db2
commit 4cb5267252
Signed by: oreolek
GPG Key ID: 1CDC4B7820C93BD3
1 changed files with 25 additions and 0 deletions

25
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,25 @@
#!groovy
node {
currentBuild.result = "SUCCESS";
try {
stage('Checkout'){
checkout scm
}
stage('Test'){
sh 'phpunit tests/';
}
}
catch (err) {
currentBuild.result = "FAILURE";
sh 'rm -rf build dist';
emailext (
subject: "FAILURE: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: """<p>FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':</p>
<p>Check console output at "<a href="${env.BUILD_URL}">${env.JOB_NAME} [${env.BUILD_NUMBER}]</a>"</p>""",
recipientProviders: [developers()]
)
throw err
}
}