Re: variable within a variable

2020-10-23 Thread cw
That's great, thank you very much. I was able to take your code, substitute MAL for HOST, for instance, and test it in a groovy web console, and it returned the correct value and interpolated the variable even though the variable wasn't defined until after the pathname was defined with the var

Re: Can Jenkins redirect HTTP requests to HTTPS?

2020-10-23 Thread Slide
You can do it on a much more recent version of Jenkins, see this PR https://github.com/jenkinsci/winstone/pull/98, it adds the --httpsRedirectHttp parameter. Regards, Alex On Fri, Oct 23, 2020 at 12:49 PM Tim Black wrote: > Owen, did your assertion turn out to be true? Is a reverse proxy requi

Re: Can Jenkins redirect HTTP requests to HTTPS?

2020-10-23 Thread Tim Black
Owen, did your assertion turn out to be true? Is a reverse proxy required to perform this redirection of jenkins requests from http (80,8080) to https (port 8443)? I'm currently using iptables to forward 443 to 8443 to allow my users to not require a port in the URL, however, this does still r

Re: variable within a variable

2020-10-23 Thread jeremy mordkoff
I stumbled on https://stackoverflow.com/questions/55423036/groovy-string-interpolation-when-string-is-defined-before-the-interpolated-varia and I found this snippet worked just fine after I approved the signature in jenkins import groovy.text.SimpleTemplateEngine node("docker") { stage("

Re: variable within a variable

2020-10-23 Thread cw
Thank you, it seems that you're right, it's not completing the expansion, but in the research I did, I wasn't able to make anything else work (one suggestion had to do with double quotes instead of single quotes, but wasn't able to get that to work either). I don't know if it's related to it b

Re: Automating the Choice Parameter on a job

2020-10-23 Thread Kari Cowan
Not sure, I was following the example detailed here, https://medium.com/@rijoalvi/jenkins-dynamic-parameters-using-extended-choice-parameter-plugin-and-groovy-1a6ffc41063f But my data model isn't as complex, so I think the way I am doing it - I need to change how to get the data I want. I just wa

Re: variable within a variable

2020-10-23 Thread jeremy mordkoff
I think you need to do an "eval" or the equivalent to filepath in order to expand the inner variable. I believe the ssh command is executing "ls /srv/jboss/server/${MAL}/log/" but MAL on the far end is empty. So you need to complete the expansion before calling ssh. This might get you on the r