提交 18582f8c 编写于 作者: O Oliver Gondža

Bump args4j to 2.0.23 as an alternative to #776

上级 83410feb
...@@ -188,7 +188,7 @@ THE SOFTWARE. ...@@ -188,7 +188,7 @@ THE SOFTWARE.
<dependency> <dependency>
<groupId>args4j</groupId> <groupId>args4j</groupId>
<artifactId>args4j</artifactId> <artifactId>args4j</artifactId>
<version>2.0.21</version> <version>2.0.23</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.jenkins-ci</groupId> <groupId>org.jenkins-ci</groupId>
......
...@@ -175,4 +175,18 @@ public class BuildCommandTest { ...@@ -175,4 +175,18 @@ public class BuildCommandTest {
assertEquals("Command is expected to fail", -1, result.returnCode()); assertEquals("Command is expected to fail", -1, result.returnCode());
assertNull("Project should not be built", newOne.getBuildByNumber(1)); assertNull("Project should not be built", newOne.getBuildByNumber(1));
} }
@Test void correctlyParseMapValuesContainingEqualsSign() {
def project = j.createFreeStyleProject("the-project");
project.addProperty(new ParametersDefinitionProperty([
new StringParameterDefinition("expr", null)
]));
def invoker = new CLICommandInvoker(j, new BuildCommand());
def result = invoker.invokeWithArgs("the-project", "-p", "expr=a=b", "-s");
assertEquals("Command is expected to succeed", 0, result.returnCode());
assertEquals("a=b", project.getBuildByNumber(1).getBuildVariables().get("expr"));
}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册