Re: println weirdness in Build Flow Plugin groovy

2014-02-19 Thread Steve Maring
just for completeness and clarity, this works in a Build Flow DSL ... public class FooBar { private OutputStream out; public FooBar(OutputStream out) { this.out = out; } public static void sayFoo(OutputStream out) { out.println("Foo"); } public void sayBar() {

Re: println weirdness in Build Flow Plugin groovy

2014-02-19 Thread Steve Maring
nvm ... looks like somebody else already found a workaround ... https://groups.google.com/forum/#!searchin/jenkinsci-users/println/jenkinsci-users/mpGF1BJpsaA/phcHtf7stacJ On Wednesday, February 19, 2014 8:54:14 AM UTC-5, Steve Maring wrote: > > If I run this script directly in

println weirdness in Build Flow Plugin groovy

2014-02-19 Thread Steve Maring
fooBar.sayBar(); It properly outputs: Hello World Foo Bar As DSL in a build flow I only get: Hello World CloudBees Build Flow plugin<https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin> v 0.10 What am I doing wrong? -Steve Maring Orlando, FL -- You received this messa

accessing Global Passwords from a Build Flow groovy script

2014-02-11 Thread Steve Maring
cess to the contents of a Global Password definition. I've noticed https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin but I seem to be limited to injecting variables as a Build Step, which are not present in a "Build Flow". Any thoughts? -Steve Maring Orlando, FL --

Re: using BuildVariableResolver to get job string params

2013-12-26 Thread Steve Maring
} On Thu, Dec 26, 2013 at 10:51 AM, Steve Maring wrote: > ok ... my bad ... I had deleted all the builds that really did have that > string param in them > > is there a way to pull that param from the project config and not rely on > any previous builds having used it? > > &g

Re: using BuildVariableResolver to get job string params

2013-12-26 Thread Steve Maring
ok ... my bad ... I had deleted all the builds that really did have that string param in them is there a way to pull that param from the project config and not rely on any previous builds having used it? On Thu, Dec 26, 2013 at 8:16 AM, Steve Maring wrote: > I have some build flow dsl (gro

using BuildVariableResolver to get job string params

2013-12-26 Thread Steve Maring
del.StringParameterValue* *I know that the SCM_URL string parameter exists in that job ... what am I doing wrong?* *Thanks,* *Steve Maring* *Orlando, FL* -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group an

Re: UnmodifiableList while trying to programmactically add a Builder to a Job

2013-12-10 Thread Steve Maring
(new hudson.tasks.Shell("echo 'Hello World'")) > l.addAll(oldBuilders) > i.save() > > On 10.12.2013, at 19:56, Steve Maring wrote: > > > I have hundreds of Jobs that I would like to programmatically add an > initial build step to using the Build

UnmodifiableList while trying to programmactically add a Builder to a Job

2013-12-10 Thread Steve Maring
I have hundreds of Jobs that I would like to programmatically add an initial build step to using the Build Flow Plugin When I try something like this ... String jobName = "MY_JOB"; List topLevelItems = Jenkins.getInstance().getAllItems(TopLevelItem.class); Job job; Iterator topLevelItem