Adding Maven environment variables
[ci-management.git] / jjb / nsh_sfc / nsh_sfc.yaml
index c9a9460..ee11c12 100644 (file)
             settings-type: cfp
             global-settings: 'global-settings'
             global-settings-type: cfp
+        - config-file-provider:
+            files:
+              - file-id: 'nsh_sfc-settings'
+                variable: 'SETTINGS_FILE'
+              - file-id: 'global-settings'
+                variable: 'GLOBAL_SETTINGS_FILE'
+        - shell:
+            !include-raw-escape: ../scripts/create_maven_env.sh
+        - inject:
+            properties-file: maven_env.txt
         - shell:
             !include-raw-escape:
                 - ../scripts/cleanup_vpp_plugin_dev_env.sh
             settings-type: cfp
             global-settings: 'global-settings'
             global-settings-type: cfp
+        - config-file-provider:
+            files:
+              - file-id: 'nsh_sfc-settings'
+                variable: 'SETTINGS_FILE'
+              - file-id: 'global-settings'
+                variable: 'GLOBAL_SETTINGS_FILE'
+        - shell:
+            !include-raw-escape: ../scripts/create_maven_env.sh
+        - inject:
+            properties-file: maven_env.txt
         - shell:
             !include-raw-escape:
                 - ../scripts/cleanup_vpp_plugin_dev_env.sh
             branch: '{branch}'
 
     builders:
+        - config-file-provider:
+            files:
+              - file-id: 'nsh_sfc-settings'
+                variable: 'SETTINGS_FILE'
+              - file-id: 'global-settings'
+                variable: 'GLOBAL_SETTINGS_FILE'
+        - shell:
+            !include-raw-escape: ../scripts/create_maven_env.sh
+        - inject:
+            properties-file: maven_env.txt
         - shell:
             !include-raw-escape:
                 - ../scripts/cleanup_vpp_plugin_dev_env.sh