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 { |
| 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 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 | } |