lambdatest - How can I dynamically assign a value to the name of uploaded artifacts, where the value is derived from system envi

admin2025-04-16  6

How can I dynamically assign a value to the name of uploaded artifacts, ensuring that the name is retrieved from a system environment variable at runtime?

Currently I am using like this

uploadArtefacts:
  - name: "Reports"
    path:
    - reports/**.  

How can I dynamically assign a value to the name of uploaded artifacts, ensuring that the name is retrieved from a system environment variable at runtime?

Currently I am using like this

uploadArtefacts:
  - name: "Reports"
    path:
    - reports/**.  
Share Improve this question edited Feb 3 at 7:36 jonrsharpe 122k30 gold badges268 silver badges476 bronze badges asked Feb 3 at 6:44 SHUBHAMSHUBHAM 214 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

You can achieve this by using ${your_variable}. In your case, it would be:

uploadArtefacts:
  - name: "${abcd}"
    path:
    - reports/** 

if value of abcd is Folder then it will come somthing like Artefacts Folder on Hyperexecute dashboard.

转载请注明原文地址:http://anycun.com/QandA/1744776465a87468.html