You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
globalNodeProperties:
- envVars:
# Unset these environment variables as they may contain the secret
env:
- key: MYTAG
value: "${IMAGE_TAG:-tf-v0.14}"
NOTE: The ":-" for setting a default
redeploy jenkins using updated JCaSC configuration
Results
Expected result:
In the example above the environment variable MYTAG would be set with the value "tf-v0.14" as "IMAGE_TAG is not set via the environment or via Azure Key Vault
Actual result:
Jenkins stops with a java stack trace that contains:
2021-11-04 15:33:53.106+0000 [id=48] WARNING c.a.c.util.logging.ClientLogger#performLogging: Failed to get secret - IMAGE_TAG
...
com.azure.core.exception.HttpResponseException: Status code 400, "{"error":{"code":"BadParameter","message":"The request URI contains an invalid name: IMAGE_TAG"}}"
The text was updated successfully, but these errors were encountered:
@bnfbiz The bug comes from the actual API call to the Keyvault. Underscores are not valid query parameter characters in the AKV API. Try this with a hyphen.
@CzapBran but this variable doesn't need to come from Azure it could come from the environment. In this case since it isn't from Azure it should not cause an error and allow the expansion to happen correctly.
It should be set to tf-v0.14 as in the example from above:
Version report
Jenkins and plugins versions report:
Reproduction steps
NOTE: The ":-" for setting a default
Results
Expected result:
In the example above the environment variable MYTAG would be set with the value "tf-v0.14" as "IMAGE_TAG is not set via the environment or via Azure Key Vault
Actual result:
Jenkins stops with a java stack trace that contains:
The text was updated successfully, but these errors were encountered: