Copy artifact within a jenkins pipeline

后端 未结 3 723
生来不讨喜
生来不讨喜 2021-02-04 16:42

I have a Jenkins pipeline job that archives an Artifact in its first phase, I then need to copy that Artifact in another stage of the pipeline build

node {
  sta         


        
3条回答
  •  隐瞒了意图╮
    2021-02-04 17:05

    In pipeline plugin, there is a new feature called 'stash', 'unstash' instead of artifacts.

    Artifact: Archives are designed for longer term file storage (e.g., intermediate binaries from your builds). Artifact requires more storage space and resource management.

    Stash: Saves a set of files and use later in the same build, generally on another node/workspace. stash and unstash steps are designed for use with small files. Stash/unstash can be used inside a pipeline with just assigning a name to the stash & works only locally.

    Here is a good example for stash/unstash: Tutorial

提交回复
热议问题