Kailash Khalasi | c323b1a | 2018-04-19 15:49:48 -0700 | [diff] [blame] | 1 | node ('ubuntu16.04-basebuild-1c-2g') { |
Luca Prete | aee36ad | 2018-11-26 14:00:01 -0800 | [diff] [blame] | 2 | timeout (100) { |
| 3 | try { |
Matteo Scandolo | 5729dae | 2019-03-14 14:25:41 -0700 | [diff] [blame^] | 4 | stage ('Checkout code') { |
Luca Prete | aee36ad | 2018-11-26 14:00:01 -0800 | [diff] [blame] | 5 | checkout([$class: 'RepoScm', currentBranch: true, manifestRepositoryUrl: 'https://gerrit.opencord.org/manifest', quiet: true]) |
| 6 | } |
Matteo Scandolo | 5729dae | 2019-03-14 14:25:41 -0700 | [diff] [blame^] | 7 | stage ('Build and Publish apps') { |
Luca Prete | aee36ad | 2018-11-26 14:00:01 -0800 | [diff] [blame] | 8 | configFileProvider([configFile(fileId: 'onoscord-apps', variable: 'MAVEN_SETTINGS')]) { |
Matteo Scandolo | 5729dae | 2019-03-14 14:25:41 -0700 | [diff] [blame^] | 9 | sh 'export _JAVA_OPTIONS=-Djdk.net.URLClassPath.disableClassPathURLCheck=true && cd onos-apps/apps && mvn -s $MAVEN_SETTINGS -e clean deploy' |
Luca Prete | aee36ad | 2018-11-26 14:00:01 -0800 | [diff] [blame] | 10 | } |
| 11 | } |
| 12 | currentBuild.result = 'SUCCESS' |
| 13 | } catch (err) { |
| 14 | currentBuild.result = 'FAILURE' |
| 15 | step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "${notificationEmail}", sendToIndividuals: false]) |
Kailash Khalasi | 8879d66 | 2018-04-20 13:37:05 -0700 | [diff] [blame] | 16 | } |
Luca Prete | aee36ad | 2018-11-26 14:00:01 -0800 | [diff] [blame] | 17 | echo "RESULT: ${currentBuild.result}" |
| 18 | } |
alshabib | 3e48815 | 2016-10-06 11:42:36 -0700 | [diff] [blame] | 19 | } |