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 # yamllint disable-line rule:line-length
47 group: gerrit-merge-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
48 cancel-in-progress: true
52 runs-on: ubuntu-latest
54 - name: Notify job start
55 # yamllint disable-line rule:line-length
56 uses: lfit/gerrit-review-action@9627b9a144f2a2cad70707ddfae87c87dce60729 # v0.8
58 host: ${{ vars.GERRIT_SERVER }}
59 username: ${{ vars.GERRIT_SSH_USER }}
60 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
61 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
62 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
63 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
65 - name: Allow replication
70 # yamllint disable-line rule:line-length
71 uses: lfit/releng-reusable-workflows/.github/workflows/composed-maven-sonar-cloud.yaml@main
73 GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }}
74 GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }}
75 GERRIT_CHANGE_NUMBER: ${{ inputs.GERRIT_CHANGE_NUMBER }}
76 GERRIT_CHANGE_URL: ${{ inputs.GERRIT_CHANGE_URL }}
77 GERRIT_EVENT_TYPE: ${{ inputs.GERRIT_EVENT_TYPE }}
78 GERRIT_PATCHSET_NUMBER: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
79 GERRIT_PATCHSET_REVISION: ${{ inputs.GERRIT_PATCHSET_REVISION }}
80 GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }}
81 GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
82 # yamllint disable rule:line-length
83 ENV_VARS: '{"SONARCLOUD_QUALITYGATE_WAIT": "false","SCAN_DEV_BRANCH": "false"}'
86 MVN_PHASES: "clean install"
88 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
89 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
90 -DaltDeploymentRepository=staging::default::file:"${GITHUB_WORKSPACE}"/m2repo
91 SONAR_PROJECT_KEY: "o-ran-sc_portal-nonrtric-controlpanel-gateway"
96 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
100 needs: [notify, run-maven-sonar]
101 runs-on: ubuntu-latest
103 - name: Get workflow conclusion
104 uses: technote-space/workflow-conclusion-action@v3
105 - name: Report workflow conclusion
106 # yamllint disable-line rule:line-length
107 uses: lfit/gerrit-review-action@9627b9a144f2a2cad70707ddfae87c87dce60729 # v0.8
109 host: ${{ vars.GERRIT_SERVER }}
110 username: ${{ vars.GERRIT_SSH_USER }}
111 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
112 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
113 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
114 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
115 vote-type: ${{ env.WORKFLOW_CONCLUSION }}