Azure release pipeline variables fetch

Please let me know how to get release pipeline during runtime for azure

Hi @Ashish,

I’m not sure I understand exactly what is it that you want to accomplish?

From your post it sounds like you want to pass environment variables to your test when using the azure pipelines extension? If so, you should be able to pass it through the args property, like this:

steps:
  - task: k6-load-test@0
    inputs:
      args: -e SOME_ENV_VAR_TO_USE_IN_K6=$(THE_VARIABLE_YOU_WANT_TO_PASS)

I might totally have misunderstood your intention, and in that case, please provide some more details and I’ll do my best to assist.

Thanks,
Simme

Hi Simme,

Thanks you for the reply. Actually iam trying to access the release pipeline variables from the script. These are created outside of the k6 task

Hey!

Then my suggestion should be viable. Pass them into the k6 task as env vars. :+1:

Best,
Simme

1 Like