mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
add test case for JENKINS-14772
This commit is contained in:
1 parent
2380a8d450
commit
1a5e41bb0f
1 file changed
+16
@@ -84,6 +84,22 @@ public class BuildCommandTest extends HudsonTestCase {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests synchronous execution with retried verbose output
|
||||
*/
|
||||
void testSyncWOutputStreaming() {
|
||||
def p = createFreeStyleProject();
|
||||
p.buildersList.add(new Shell("sleep 3"));
|
||||
|
||||
def cli =new CLI(getURL())
|
||||
try {
|
||||
cli.execute(["build","-s","-v","-r","5",p.name])
|
||||
assertFalse(p.getBuildByNumber(1).isBuilding())
|
||||
} finally {
|
||||
cli.close();
|
||||
}
|
||||
}
|
||||
|
||||
void testParameters() {
|
||||
def p = createFreeStyleProject();
|
||||
p.addProperty(new ParametersDefinitionProperty([new StringParameterDefinition("key",null)]));
|
||||
|
||||
Reference in new issue
Block a user