On Thu, Feb 16, 2017 at 7:45 AM, John Marks <johnma...@g.harvard.edu> wrote:
> I just wanted to test secret text, but the job always outputs "****" when > I try to echo the bound variable from a shell script job. > > > <https://lh3.googleusercontent.com/-g3wCD20Bhl0/WKXI25v9LjI/AAAAAAAAAAw/e_xD_5Ol3XckivticCETnwm6WtRBtpLBwCLcB/s1600/jobconfig.png> > > > Shell script: > > set +x > echo "My secret is $username" > > What I see in the console: > > Started by user GMAS > [EnvInject] - Loading node environment variables. > Building in workspace /u02/app/jenkins/.jenkins/workspace/c-test > [c-test] $ /bin/sh -xe /u02/app/jenkins/apache-tomcat-8.0.26/temp/ > hudson5680487019107036432.sh > + set +x > My secret is **** > Finished: SUCCESS > > Probably something really obvious that I'm missing. Can someone help? > Did you try referencing "${username.toString()}" instead? -- 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/CAA5t8Voqus8RrGdd5s%2BScT_CJt3dV6C9M8_5PF%3DBiPRD2NBFbg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.