new build scripts, #noticket

This commit is contained in:
Jenkins
2019-11-29 11:36:56 +07:00
parent f535ec5fe0
commit 11893ccb26
5 changed files with 89 additions and 12 deletions

33
jenkinsfile.android Normal file
View File

@@ -0,0 +1,33 @@
node('android') {
try {
stage 'Clean from prevoius build'
sh """
rm -fR build/ || echo "dir does not exist";
"""
stage 'Checkout branch'
checkout scm
stage 'Assemble applications'
sh """
source ~/.profile
make android-apps
"""
archiveArtifacts artifacts: 'output/*.apk'
} catch(err) {
currentBuild.result = "FAILURE"
/*mail body: "project build error: ${err}" ,*/
/*from: 'ci@dinect.com',*/
/*replyTo: 'm.sokolov@dinect.com',*/
/*subject: 'project build failed',*/
/*to: 'm.sokolov@dinect.com'*/
throw err
} finally{
sh """
echo "Build failed"
"""
}
}