LF Jenkins CI | f58c57c | 2020-02-26 18:40:17 +0000 | [diff] [blame] | 1 | --- |
| 2 | - project: |
Lott, Christopher (cl778h) | 1df0a79 | 2020-03-13 10:09:01 -0400 | [diff] [blame^] | 3 | name: ric-plt-alarm-go-project-view |
| 4 | project-name: ric-plt-alarm-go |
| 5 | views: |
| 6 | - project-view |
| 7 | |
| 8 | - project: |
LF Jenkins CI | f58c57c | 2020-02-26 18:40:17 +0000 | [diff] [blame] | 9 | name: ric-plt-alarm-go-info |
| 10 | project: ric-plt/alarm-go |
| 11 | project-name: ric-plt-alarm-go |
| 12 | build-node: centos7-builder-1c-1g |
| 13 | jobs: |
| 14 | - gerrit-info-yaml-verify |
Lott, Christopher (cl778h) | 1df0a79 | 2020-03-13 10:09:01 -0400 | [diff] [blame^] | 15 | |
| 16 | - alarm_go_common: &alarm_go_common |
| 17 | # values apply to all projects |
| 18 | name: alarm-go-common |
| 19 | # git repo |
| 20 | project: ric-plt/alarm-go |
| 21 | # jenkins job name prefix |
| 22 | project-name: ric-plt-alarm-go |
| 23 | # maven settings file has docker credentials |
| 24 | mvn-settings: ric-plt-alarm-go-settings |
| 25 | |
| 26 | - project: |
| 27 | <<: *alarm_go_common |
| 28 | name: ric-plt-alarm-go-docker |
| 29 | # image name |
| 30 | docker-name: 'o-ran-sc/ric-plt-alarm-go' |
| 31 | # source of docker tag |
| 32 | container-tag-method: yaml-file |
| 33 | container-tag-yaml-dir: adapter |
| 34 | # use host network |
| 35 | docker-build-args: '-f adapter/Dockerfile --network=host' |
| 36 | build-node: ubuntu1804-docker-4c-4g |
| 37 | stream: |
| 38 | - master: |
| 39 | branch: master |
| 40 | jobs: |
| 41 | - '{project-name}-gerrit-docker-jobs' |
| 42 | |
| 43 | - project: |
| 44 | <<: *alarm_go_common |
| 45 | name: ric-plt-alarm-go-sonarqube |
| 46 | # docker-enabled nodes have golang |
| 47 | # build script needs ubuntu |
| 48 | build-node: ubuntu1804-docker-2c-8g |
| 49 | sonar-prescan-script: !include-raw-escape: build-alarm-go-ubuntu.sh |
| 50 | sonar-project-file: "" |
| 51 | # use sonarcloud values from defaults.yaml |
| 52 | sonar-properties: | |
| 53 | # Required metadata |
| 54 | sonar.login={sonarcloud_api_token} |
| 55 | sonar.projectKey={sonarcloud_project_organization}_{project-name} |
| 56 | sonar.projectName={project-name} |
| 57 | sonar.organization={sonarcloud_project_organization} |
| 58 | # Encoding |
| 59 | sonar.build.sourceEncoding=UTF-8 |
| 60 | # Language |
| 61 | sonar.language=go |
| 62 | # Source |
| 63 | sonar.sources=. |
| 64 | # Unit tests |
| 65 | sonar.go.coverage.reportPaths=coverage.xml |
| 66 | # Inclusions |
| 67 | sonar.inclusions=**/*.go |
| 68 | # Exclusions |
| 69 | sonar.exclusions=**/*_test.go |
| 70 | jobs: |
| 71 | - gerrit-sonar-prescan-script |