Thanks for the feedback, Ben! Unfortunately this is something we wanted populated later down the line based on external webhooks triggering builds in an environment that can't have external SCM trigger directly. For now, we've had to document the scenario but would love support for the same $$ syntax supported elsewhere; just to ensure nothing borks it up again.
Cheers! On Tue, Jul 3, 2018 at 1:05 PM Ben Parees <[email protected]> wrote: > > > On Tue, Jul 3, 2018 at 12:56 PM, Andrew Feller <[email protected]> > wrote: > >> I see there is a way to escape environment variable references >> <https://docs.openshift.com/container-platform/3.6/dev_guide/downward_api.html#dapi-escaping-environment-variable-references>, >> however I wanted to see if there was a way to escape OpenShift template >> parameter references as I wanted to pass Jenkins environment variable >> references to BuildConfig SCM attributes to be evaluated later in a way >> that someone couldn't break them by declaring an OpenShift template >> parameter of the same name. Looking at the oc process logic >> <https://github.com/openshift/origin/blob/master/pkg/template/templateprocessing/template.go>, >> it doesn't appear this is supported but thought would ask. >> > > no i'm afraid not. You could forestall such problems by defining a > parameter with a default value that is the env reference, though. > > >> Thanks! >> >> -- >> >> [image: BandwidthMaroon.png] >> >> Andy Feller • Sr DevOps Engineer >> >> 900 Main Campus Drive, Suite 500, Raleigh, NC 27606 >> >> >> e: [email protected] >> >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.openshift.redhat.com/openshiftmm/listinfo/users >> >> > > > -- > Ben Parees | OpenShift > > -- [image: BandwidthMaroon.png] Andy Feller • Sr DevOps Engineer 900 Main Campus Drive, Suite 500, Raleigh, NC 27606 e: [email protected]
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
