title: Documentation on archiveArtifacts command in Jenkins
body: <p>I'm working on a basic Jenkins pipeline. The build and testing are successful but I'm looking at how to archive the build. For context, this is a simple Rust webserver.</p>
  
  <p>Under the <a href="https://jenkins.io/doc/pipeline/steps/" rel="noreferrer">pipeline steps</a> documentation in the Basic Steps plugin, it has the <code>archive</code> function. But it says:</p>
  
  <blockquote>
    <p>Archives build output artifacts for later use. As of Jenkins 2.x, you may use the more configurable <code>archiveArtifacts</code>.</p>
  </blockquote>
  
  <p>I cannot find any documentation on <code>archiveArtifacts</code>. There are some examples, but I would like to look at the documentation for it, what parameters it accepts, i.e. what makes it more configurable than <code>archive</code>.</p>
  
  <p>My question: is there a place where this documentation is best found? <a href="https://jenkins.io" rel="noreferrer">jenkins.io</a> is incomplete and <a href="https://wiki.jenkins.io/" rel="noreferrer">wiki.jenkins.io</a> is missing this command. </p>