blob: fc6326587c0cd128650383187196e61e53477b48 [file] [log] [blame]
Kailash Khalasic323b1a2018-04-19 15:49:48 -07001node ('ubuntu16.04-basebuild-1c-2g') {
Luca Preteaee36ad2018-11-26 14:00:01 -08002 timeout (100) {
3 try {
4 stage 'Checkout code' {
5 checkout([$class: 'RepoScm', currentBranch: true, manifestRepositoryUrl: 'https://gerrit.opencord.org/manifest', quiet: true])
6 }
7 stage 'Build and Publish apps' {
8 configFileProvider([configFile(fileId: 'onoscord-apps', variable: 'MAVEN_SETTINGS')]) {
9 sh 'export _JAVA_OPTIONS=-Djdk.net.URLClassPath.disableClassPathURLCheck=true && cd onos-apps/apps && mvn -s $MAVEN_SETTINGS clean deploy'
10 }
11 }
12 currentBuild.result = 'SUCCESS'
13 } catch (err) {
14 currentBuild.result = 'FAILURE'
15 step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "${notificationEmail}", sendToIndividuals: false])
Kailash Khalasi8879d662018-04-20 13:37:05 -070016 }
Luca Preteaee36ad2018-11-26 14:00:01 -080017 echo "RESULT: ${currentBuild.result}"
18 }
alshabib3e488152016-10-06 11:42:36 -070019}