I have a classic build pipeline
I have defined a non-secret (var1), and a secret var (var2) in variables tab
I have maven task that runs my java application
I have tried to access the value of the variables through getenv, getProperty and ProcessBuilder approach.
getenv and getProperty return null for both var1 and var2
ProcessBuilder approach returns the value of var1 but var2 is still null
Is there a way to access the value of the secret variables inside java app?
Thank you.