Select specific build number from input parameter
Summary:
Content (please ensure you mask any confidential information):
I am trying to create a build job with the intention of deploying to an HCM environment. I want this build job to have a parameter that is a list of all the previous successful builds so we can select a specific build and copy the artifact from that build instead of the latest one. I can see in the copy artifacts step there's a "Specified by Build Parameter" option for which build to use. This generates a parameter name called BUILD_SELECTOR.
I understand how to link that BUILD_SELECTOR to a parameter, but I'm wondering if there's a way to make that parameter a drop down of all the successful builds of the package job. This would allow us to deploy specific builds that have changes that are ready to deploy to a different environment.