Marco Tallskog | 7a2bf68 | 2019-11-01 16:56:01 +0200 | [diff] [blame] | 1 | --- |
| 2 | - project: |
| 3 | name: ric-plt-sdlgo-project-view |
| 4 | project-name: ric-plt-sdlgo |
| 5 | views: |
| 6 | - project-view |
| 7 | |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 8 | - _sdlgo_docker_common: |
| 9 | &sdlgo_docker_common # values apply to all sdlgo docker projects |
Marco Tallskog | 7a2bf68 | 2019-11-01 16:56:01 +0200 | [diff] [blame] | 10 | name: sdlgo-docker-common |
| 11 | # git repo |
| 12 | project: ric-plt/sdlgo |
| 13 | # jenkins job name prefix |
| 14 | project-name: ric-plt-sdlgo |
| 15 | # maven settings file has docker credentials |
| 16 | mvn-settings: ric-plt-sdlgo-settings |
| 17 | |
| 18 | # runs unit tests on verify only |
| 19 | - project: |
| 20 | <<: *sdlgo_docker_common |
| 21 | name: ric-plt-sdlgo |
| 22 | # image name, altho it is never pushed |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 23 | docker-name: "{name}" |
Marco Tallskog | 7a2bf68 | 2019-11-01 16:56:01 +0200 | [diff] [blame] | 24 | # use host network |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 25 | docker-build-args: "--network=host -f ci/Dockerfile" |
Marco Tallskog | 7a2bf68 | 2019-11-01 16:56:01 +0200 | [diff] [blame] | 26 | # image tag; use a fixed value |
| 27 | container-tag-method: latest |
| 28 | jobs: |
| 29 | - gerrit-docker-verify |
| 30 | stream: |
| 31 | - master: |
| 32 | branch: master |
Alok Bhatt | 57da2da | 2020-09-29 10:46:07 +0000 | [diff] [blame] | 33 | - project: |
| 34 | <<: *sdlgo_docker_common |
| 35 | name: ric-plt-sdlgo-go-sonarqube |
| 36 | # docker-enabled nodes have golang |
| 37 | # build script needs ubuntu |
| 38 | build-node: ubuntu1804-docker-4c-4g |
| 39 | sonar-prescan-script: !include-raw-escape: prescan-sdlgo-go-ubuntu.sh |
| 40 | sonar-project-file: "" |
| 41 | # use sonarcloud values from defaults.yaml |
| 42 | sonar-properties: | |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 43 | # Required metadata |
| 44 | sonar.login={sonarcloud_api_token} |
| 45 | sonar.projectKey={sonarcloud_project_organization}_{project-name} |
| 46 | sonar.projectName={project-name} |
| 47 | sonar.organization={sonarcloud_project_organization} |
| 48 | # Encoding |
| 49 | sonar.build.sourceEncoding=UTF-8 |
| 50 | # Language |
| 51 | sonar.language=go |
| 52 | # Source |
| 53 | sonar.sources=. |
| 54 | # Unit tests |
| 55 | sonar.go.coverage.reportPaths=**/cover.out |
| 56 | # Inclusions |
| 57 | sonar.inclusions=**/*.go |
| 58 | # Exclusions |
| 59 | sonar.exclusions=cmd/**.go,example/**.go,internal/mocks/**.go,**/*_test.go |
Alok Bhatt | 57da2da | 2020-09-29 10:46:07 +0000 | [diff] [blame] | 60 | jobs: |
| 61 | - gerrit-sonar-prescan-script |
| 62 | |
| 63 | - project: |
| 64 | <<: *sdlgo_docker_common |
| 65 | name: ric-plt-sdlgo-go-release |
| 66 | build-node: centos7-docker-2c-8g |
| 67 | jobs: |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 68 | - "{project-name}-gerrit-release-jobs" |