[Azure Devops] - How to use Azure Devops variables saved as secret in a maven jar

Pritam Pathak 1 Reputation point
2021-02-20T12:17:22.397+00:00

I'm trying to store app Id and secret as ADO pipeline variables but storing them as secret makes them unavailable in environment variables. Documentation mentions we need to explicitly bind a task scoped variable to the secret variable to use it in a task but maven task doesn't support the environment section.
Is there any way to achieve this?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,987 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.3K Reputation points MVP
    2021-02-20T13:16:18.1+00:00

    Devops / TFS is not currently supported here on QnA. The product group for Azure DevOps / TFS actively monitors questions over at
    https://developercommunity.visualstudio.com/spaces/21/index.html
    https://developercommunity.visualstudio.com/spaces/22/index.html

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments