While adding variables to your build_spec.yaml file, you made a mistake that resulted in a failed build pipeline. What is the error you could have made?
The correct way is to use the variables section in your build_spec.yaml file to define variables and assign values to them. You can also use the vaultVariable section to define variables that hold the content of the vault secrets in OCID format. You can then use these variables in other sections of your build_spec.yaml file by using the syntax $(VARIABLE_NAME). You can also use the exportedVariables section to define variables that can be used in subsequent stages of the same pipeline. Verified Reference: [Variables - Oracle Cloud Infrastructure DevOps], [Defining Variables - Oracle Cloud Infrastructure DevOps]
Currently there are no comments in this discussion, be the first to comment!