4 # yamllint disable-line rule:truthy
9 description: "Branch that change is against"
13 description: "The ID for the change"
17 description: "The Gerrit number"
21 description: "URL to the change"
25 description: "Type of Gerrit event"
28 GERRIT_PATCHSET_NUMBER:
29 description: "The patch number for the change"
32 GERRIT_PATCHSET_REVISION:
33 description: "The revision sha"
37 description: "Project in Gerrit"
41 description: "Gerrit refspec of change"
46 description: "Sonar Cloud access token"
50 # yamllint disable-line rule:line-length
51 group: gerrit-merge-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
52 cancel-in-progress: true
56 runs-on: ubuntu-latest
58 - name: Notify job start
59 # yamllint disable-line rule:line-length
60 uses: lfit/gerrit-review-action@9627b9a144f2a2cad70707ddfae87c87dce60729 # v0.8
62 host: ${{ vars.GERRIT_SERVER }}
63 username: ${{ vars.GERRIT_SSH_USER }}
64 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
65 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
66 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
67 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
70 - name: Allow replication
73 call-prescan-sonarcloud-capifcore:
75 # yamllint disable-line rule:line-length
76 uses: lfit/releng-reusable-workflows/.github/workflows/composed-prescan-sonar-cloud.yaml@main
78 GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }}
79 GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }}
80 GERRIT_CHANGE_NUMBER: ${{ inputs.GERRIT_CHANGE_NUMBER }}
81 GERRIT_CHANGE_URL: ${{ inputs.GERRIT_CHANGE_URL }}
82 GERRIT_EVENT_TYPE: ${{ inputs.GERRIT_EVENT_TYPE }}
83 GERRIT_PATCHSET_NUMBER: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
84 GERRIT_PATCHSET_REVISION: ${{ inputs.GERRIT_PATCHSET_REVISION }}
85 GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }}
86 GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
88 # yamllint disable-line rule:line-length
89 PRE_BUILD_SCRIPT_URL: "https://raw.githubusercontent.com/o-ran-sc/ci-management/master/jjb/nonrtric-plt-sme/prescan-capifcore-ubuntu.sh"
90 SONAR_PROJECTBASEDIR: capifcore
92 -Dsonar.organization=o-ran-sc
93 -Dsonar.projectKey=o-ran-sc_nonrtric-plt-sme-capifcore
94 -Dsonar.projectName=nonrtric-plt-sme-capifcore
95 -Dsonar.build.sourceEncoding=UTF-8
97 -Dsonar.go.coverage.reportPaths=coverage.txt
98 -Dsonar.inclusions=**/**.go
99 -Dsonar.exclusions=**/*_test.go
102 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
104 call-prescan-sonarcloud-servicemanager:
106 # yamllint disable-line rule:line-length
107 uses: lfit/releng-reusable-workflows/.github/workflows/composed-prescan-sonar-cloud.yaml@main
109 GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }}
110 GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }}
111 GERRIT_CHANGE_NUMBER: ${{ inputs.GERRIT_CHANGE_NUMBER }}
112 GERRIT_CHANGE_URL: ${{ inputs.GERRIT_CHANGE_URL }}
113 GERRIT_EVENT_TYPE: ${{ inputs.GERRIT_EVENT_TYPE }}
114 GERRIT_PATCHSET_NUMBER: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
115 GERRIT_PATCHSET_REVISION: ${{ inputs.GERRIT_PATCHSET_REVISION }}
116 GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }}
117 GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
119 # yamllint disable-line rule:line-length
120 PRE_BUILD_SCRIPT_URL: "https://raw.githubusercontent.com/o-ran-sc/ci-management/master/jjb/nonrtric-plt-sme/prescan-servicemanager-ubuntu.sh"
121 SONAR_PROJECTBASEDIR: servicemanager
123 -Dsonar.organization=o-ran-sc
124 -Dsonar.projectKey=o-ran-sc_nonrtric-plt-sme-servicemanager
125 -Dsonar.projectName=nonrtric-plt-sme-servicemanager
126 -Dsonar.build.sourceEncoding=UTF-8
128 -Dsonar.go.coverage.reportPaths=coverage.txt
129 -Dsonar.inclusions=**/**.go
130 -Dsonar.exclusions=**/*_test.go
133 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
137 needs: [notify, call-prescan-sonarcloud-capifcore, call-prescan-sonarcloud-servicemanager]
138 runs-on: ubuntu-latest
140 - name: Get workflow conclusion
141 uses: technote-space/workflow-conclusion-action@v3
142 - name: Report workflow conclusion
143 # yamllint disable-line rule:line-length
144 uses: lfit/gerrit-review-action@9627b9a144f2a2cad70707ddfae87c87dce60729 # v0.8
146 host: ${{ vars.GERRIT_SERVER }}
147 username: ${{ vars.GERRIT_SSH_USER }}
148 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
149 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
150 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
151 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
152 vote-type: ${{ env.WORKFLOW_CONCLUSION }}