use of org.jenkinsci.plugins.workflow.steps.CoreStep 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'])");
}
}
Aggregations