blob: 1145d63488b4e0333448c62f3e792a0b9950b824 [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 {
Matteo Scandolo5729dae2019-03-14 14:25:41 -07004 stage ('Checkout code') {
Luca Preteaee36ad2018-11-26 14:00:01 -08005 checkout([$class: 'RepoScm', currentBranch: true, manifestRepositoryUrl: 'https://gerrit.opencord.org/manifest', quiet: true])
6 }
Matteo Scandolo5729dae2019-03-14 14:25:41 -07007 stage ('Build and Publish apps') {
Luca Preteaee36ad2018-11-26 14:00:01 -08008 configFileProvider([configFile(fileId: 'onoscord-apps', variable: 'MAVEN_SETTINGS')]) {
Matteo Scandolo5729dae2019-03-14 14:25:41 -07009 sh 'export _JAVA_OPTIONS=-Djdk.net.URLClassPath.disableClassPathURLCheck=true && cd onos-apps/apps && mvn -s $MAVEN_SETTINGS -e clean deploy'
Luca Preteaee36ad2018-11-26 14:00:01 -080010 }
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}