Hi Eric
Is it work for you?
sh """
ls -l ${deploy.dir}
"""
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bcb946d6-f25e-4bb3-8fc1-469986804a31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- WBD, Viacheslav Dubrovskyi
ls -l ${deploy.dir}
: bad substitution--
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/95ec0a54-537f-4726-9245-bf430147d298%40googlegroups.com.
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cf3db8bc-86be-43b2-a316-891976614704%40googlegroups.com.
/tmp/jenkins8691176514212713317.sh: line 2: ${params.get('deploy.dir')}: bad substitution/tmp/jenkins7135875844305012846.sh: line 2: deploy.dir: syntax error: invalid arithmetic operator (error token is ".dir")
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e44443d5-f48d-40e9-ad39-3d6a6014ff8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
/tmp/jenkins6366597011192684630.sh: line 2: ${params.'deploy.dir'}: bad substitution--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/613d8387-e420-4898-b8da-47fbed8aeceb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Eric Pyle Siemens PLM Software Lebanon, NH +1 603-277-3060 eric...@siemens.com http://www.siemens.com/plm
[OIS-Client] $ /bin/sh -xe /tmp/jenkins1618762877704683861.sh ++ grep 'deploy\.dir=' ++ cut -d = -f 2 ++ env + depdir=/deploy + echo 'deploy.dir == /deploy' deploy.dir == /deploy
I can work that into this and avoid using an ant script or rewriting 15 different jobs, THANKS!!!
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/aa6cfbc0-2ae0-4b8c-b309-c131ba7cd01f%40googlegroups.com.
Periods aren’t valid characters for a shell variable name, I can’t set one to test this. Try using “${deploy.dir}” (as in “ls ${deploy.dir}”). If that doesn’t work extracting it from your environment with env | grep | cut is going to be the best you’ve got assuming you can’t give it a valid name.
--