@Test
  public void use_local_maven_repo() {
    installSomeMaven(jenkins);

    FreeStyleJob job = jenkins.jobs.create();
    job.configure();
    MavenBuildStep step = job.addBuildStep(MavenBuildStep.class);
    step.targets.set(GENERATE);
    step.useLocalRepository();
    job.save();

    job.startBuild()
        .shouldSucceed()
        .shouldContainsConsoleOutput("-Dmaven.repo.local=([^\\n]*)/.repository");
  }
  @Test
  @Bug("JENKINS-10539")
  @Since("1.527")
  public void preserve_backslash_in_property() {
    installSomeMaven(jenkins);

    FreeStyleJob job = jenkins.jobs.create(FreeStyleJob.class);
    job.configure();
    job.addParameter(StringParameter.class).setName("CMD");
    job.addParameter(StringParameter.class).setName("PROPERTY");

    MavenBuildStep step = job.addBuildStep(MavenBuildStep.class);
    step.targets.set(GENERATE + " -Dcmdline.property=$CMD");
    step.properties("property.property=$PROPERTY");
    job.save();

    Map<String, String> params = new HashMap<>();
    params.put("CMD", "\"C:\\\\System\"");
    params.put("PROPERTY", "C:\\Windows");
    job.startBuild(params)
        .shouldSucceed()
        .shouldContainsConsoleOutput("cmdline.property=C:\\\\System")
        .shouldContainsConsoleOutput("property.property=C:\\\\Windows");
  }