Build jobs in Oracle Visual Builder Studio have built in parameters that can be leveraged in your build steps. But sometimes you want to set the values of these parameters dynamically – potentially by a previous job in your pipeline. Sometimes you even want to create these parameters dynamically during the execution of jobs and pass them to the next jobs in the pipeline. The latest version of Oracle Visual Builder Studio lets you achieve these tasks easily with new declarative steps.
Importing Parameters
You can dynamically create parameters and assign values for them based on definitions you store in files in your Git repository. Create a file with sets of parameterName=parameterValue entries. Then in your build job leverage the new "Add Parameter List" step in a before-build section to point to this file. When the job executes, the parameters and their values will be read from the file and you can then use them in the build steps. Note that since the file is in the Git repository, you can dynamically change the values of the parameters and even create/remove parameters easily by modifying the file content.
Export Parameters
This deals with situations where you would want one build job to define parameters that can be used by the next jobs in the pipeline. Two new steps "Export Parameter" and "Export Parameter List" in the after-build section of the build definition enable this scenario. The export Parameter step lets you define a new parameter and pick the value for this parameter from a file. You can mark the parameter as containing sensitive data – which will hide the value in all the logs. The "export parameter list" step lets you specify a file that contains a set of parameters and their values that will be defined for the next jobs in the pipeline.
Demo
In the video below we demonstrate how to use these features in a simple scenario.
