Variable substitutions in value from param

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Variable substitutions in value from param

Turbo Fredriksson
I have the need to substitute a value (removing parts of it) that is coming in via a job parameter.

Repo: [hidden email]:pharmpress/${UPSTREAM_PROJECT}.git

This works if the value is "exporter-multimodule", but NOT if "exporter-multimodule/sso". So I need to remove the "/sso" part from the variable.

Is this possible? In a shell script, I would use


and it would work, but Jenkins is taking that literally..

You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit
For more options, visit