created a test job ("test-params") with "ARGS" as string parameter

import hudson.cli.BuildCommand;
import java.util.Locale;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.PrintStream;


def test(parameter) {
    locale = Locale.ENGLISH;
    InputStream stdin;
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    ByteArrayOutputStream err = new ByteArrayOutputStream();
    command = new BuildCommand();
    String[] args = ["test-params", "-p", parameter];
    returnCode = command.main(
        args.toList(), locale, stdin, new PrintStream(out), new PrintStream(err)
    );
}


test("ARGS=a")
test("ARGS=a=b")

both run that were created had ARGS=a.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to