Details
-
Type:
Bug
-
Status: Open (View Workflow)
-
Priority:
Minor
-
Resolution: Unresolved
-
Component/s: pipeline
-
Labels:
-
Similar Issues:
Description
When you go to http://jenkins_install/job/some_pipeline_job/pipeline-syntax/html or https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md you get a page documenting the DSL in Jenkinsfile.
'archive' is listed as a deprecated step. Users are told to use 'archiveArtifacts' instead, but it's not actually documented anywhere on the page.
Sorry if the component is wrong, it was hard to choose.
In case someone else stumbles across this ticket, I don't know how to modify the docs but a quick scan of the [source](https://github.com/jenkinsci/jenkins/blob/f09d00dd32ea351105ef99456f3af1883d3ca8da/core/src/main/java/hudson/tasks/ArtifactArchiver.java) (as of 2017-09-26) reveals the following fields:
* _artifacts_: comma or space separated list of patterns or files/directories to be archived (required)
* _excludes_: Optional ant-style excludes pattern (default null)
* _allowEmptyArchive_: If set the step will not fail, even if no artifacts are included. (default false)
* _fingerprint_: Generates a fingerprint (md5sum? I'm not sure what this is. I think it defaults to false)
* _defaultExcludes_: No idea (defaults to true)
* _caseSensitive_: Whether the artifacts patterns and excludes patterns should be case sensitive (defaults to true)