2 name: Gerrit Composed Maven Merge
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: compose-maven-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@7c30179c3c9389545fccb0d458df59879372ae6a # v0.6
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 }}
66 - name: Allow replication
71 # yamllint disable-line rule:line-length
72 uses: lfit/releng-reusable-workflows/.github/workflows/composed-maven-nexus-iq.yaml@main
74 GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }}
75 GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }}
76 GERRIT_CHANGE_NUMBER: ${{ inputs.GERRIT_CHANGE_NUMBER }}
77 GERRIT_CHANGE_URL: ${{ inputs.GERRIT_CHANGE_URL }}
78 GERRIT_EVENT_TYPE: ${{ inputs.GERRIT_EVENT_TYPE }}
79 GERRIT_PATCHSET_NUMBER: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
80 GERRIT_PATCHSET_REVISION: ${{ inputs.GERRIT_PATCHSET_REVISION }}
81 GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }}
82 GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
83 # yamllint disable rule:line-length
87 MVN_PHASES: "clean install dependency:tree com.sonatype.clm:clm-maven-plugin:2.41.0-02:index"
89 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
90 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
91 -DaltDeploymentRepository=staging::default::file:"${GITHUB_WORKSPACE}"/m2repo
92 --add-opens=java.base/java.util=ALL-UNNAMED
94 NEXUS_IQ_PASSWORD: ${{ secrets.NEXUS_IQ_PASSWORD }}
98 needs: [notify, run-maven-clm]
99 runs-on: ubuntu-latest
101 - name: Get workflow conclusion
102 uses: technote-space/workflow-conclusion-action@v3
103 - name: Report workflow conclusion
104 # yamllint disable-line rule:line-length
105 uses: lfit/gerrit-review-action@7c30179c3c9389545fccb0d458df59879372ae6a # v0.6
107 host: ${{ vars.GERRIT_SERVER }}
108 username: ${{ vars.GERRIT_SSH_USER }}
109 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
110 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
111 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
112 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
113 vote-type: ${{ env.WORKFLOW_CONCLUSION }}