use of hudson.tasks.ArtifactArchiver in project workflow-cps-plugin by jenkinsci.
the class SnippetizerTest method coreStep.
@Test
public void coreStep() throws Exception {
ArtifactArchiver aa = new ArtifactArchiver("x.jar");
aa.setAllowEmptyArchive(true);
if (ArtifactArchiver.DescriptorImpl.class.isAnnotationPresent(Symbol.class)) {
st.assertRoundTrip(new CoreStep(aa), "archiveArtifacts allowEmptyArchive: true, artifacts: 'x.jar'");
} else {
// TODO 2.x delete
st.assertRoundTrip(new CoreStep(aa), "step([$class: 'ArtifactArchiver', allowEmptyArchive: true, artifacts: 'x.jar'])");
}
}
use of hudson.tasks.ArtifactArchiver in project promoted-builds-plugin by jenkinsci.
the class KeepBuildForeverActionTest method createFingerprinters.
private List<Recorder> createFingerprinters() {
Recorder r1 = new ArtifactArchiver("*", null, false);
Recorder r2 = new Fingerprinter("", true);
return Arrays.asList(r1, r2);
}
Aggregations