Fix: Set ODL Nexus proxy env variable through vars 13/108513/3
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 19 Oct 2023 01:45:51 +0000 (11:45 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 19 Oct 2023 23:32:05 +0000 (09:32 +1000)
The workflow is modified to take in extra vars which now allows
to set the env vars.

Change-Id: If93b1c49c86f1bde23f5c1536320bc7737876ce4
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
.github/workflows/gerrit-verify.yaml

index 5b7032789cb30053169802673e9d5a2e5a9d2b11..2a1cbe52f3b31c073779f7b415175be12eb4f436 100644 (file)
@@ -42,9 +42,6 @@ on:
         required: true
         type: string
 
-env:
-  ODLNEXUSPROXY: ${{ vars.NEXUSPROXY }}
-
 concurrency:
   # yamllint disable-line rule:line-length
   group: compose-maven-verify-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
@@ -87,6 +84,7 @@ jobs:
       JDK_VERSION: "17"
       MVN_VERSION: "3.8.2"
       MVN_PROFILES: "docker"
+      ENV_VARS: ${{ toJSON(vars) }}
 
   vote:
     if: ${{ always() }}