3 name: ric-plt-xapp-frame-cpp-project-view
4 project-name: ric-plt-xapp-frame-cpp
8 - _xapp_frame_cpp_common: &xapp_frame_cpp_common
9 name: xapp-frame-cpp-common
11 project: ric-plt/xapp-frame-cpp
12 # jenkins job name prefix
13 project-name: ric-plt-xapp-frame-cpp
14 # maven settings file has credentials to archive artifacts
15 mvn-settings: ric-plt-xapp-frame-cpp-settings
16 # test scripts depend on this name
17 build-dir: $WORKSPACE/build
18 # Use ubuntu base for cmake v3
19 # Use docker variant for packagecloud ruby gem
20 build-node: ubuntu1804-docker-4c-4g
21 # pre-build scripts for CMake templates:
22 # install alien package to build RPMS
23 # install RMR per version file in repo
24 pre-build: !include-raw-escape:
25 - ../shell/install-deb-alien.sh
26 - ../shell/install-deb-rmr.sh
27 - ../shell/install-git-RESTful.sh
28 # skip install in cmake-build.sh
33 <<: *xapp_frame_cpp_common
34 name: xapp-frame-cpp-verify
35 cmake-opts: -DDEV_PKG=1
36 make-opts: package test ARGS=-V
43 # development library - package and publish
45 <<: *xapp_frame_cpp_common
46 name: ric-plt-xapp-frame-cpp-dev
47 project-name: "{name}"
48 cmake-opts: -DDEV_PKG=1
50 install-prefix: /usr/local
52 - gerrit-cmake-packagecloud-stage
57 # runtime library - package and publish
59 <<: *xapp_frame_cpp_common
60 name: ric-plt-xapp-frame-cpp-rt
61 project-name: "{name}"
62 cmake-opts: -DDEV_PKG=0
64 install-prefix: /usr/local
66 - gerrit-cmake-packagecloud-stage
71 # promote deb/rpm from staging to release at PackageCloud.io
73 <<: *xapp_frame_cpp_common
74 name: ric-plt-xapp-frame-cpp-release
75 # release uses sigul which requires centos
76 build-node: centos7-builder-1c-1g
78 - gerrit-packagecloud-release-verify
79 - gerrit-packagecloud-release-merge
81 # analyze C code and test coverage
83 name: xapp-frame-cpp-sonarqube
84 <<: *xapp_frame_cpp_common
85 make-opts: test ARGS=-V
86 sonar-project-file: ""
88 sonar.login={sonarcloud_api_token}
89 sonar.projectKey={sonarcloud_project_organization}_{project-name}
90 sonar.projectName={project-name}
91 sonar.organization={sonarcloud_project_organization}
92 sonar.build.sourceEncoding=UTF-8
94 sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
95 sonar.cfamily.gcov.reportsPath=test
97 - gerrit-cmake-sonarqube