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

Param: UPSTREAM_PROJECT
Repo: g...@github.com: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

    ${UPSTREAM_PROJECT/\/*/}

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9d870c6f-3914-4540-a205-62a5349f2ead%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to