Jenkins Copy Artifact Plugin for transferring files between different slave

Source: Internet
Author: User

Simulation scenario: Using the Jenkins Continuous integration tool to deploy the UAT environment with a deployment package for the SIT environment, you can use the Jenkins Copy Artifact plugin plugin.

The installation plugin is omitted here ...

Here is the procedure for configuring the copy Artifact plugin:

Job test is the job for the sit environment of Jenkins Job,job B for the UAT environment.

Configuration of Job test:

Add a archive the artifacts.

Fill in the file you want to archive, and we'll fill in the war path we're going to pass.

When you are configured to perform the job, you can see that the war has been archived.

Configuration of Job B:

Select Copy artifacts from another project (you need to configure the copy Artifact plugin plugin).

Project Name: Document Source Job
Which build: Which build, here we choose the latest successful build
Stable build only: Gets when the build is successful
Artifacts to copy: document name, passed file name

Target directory:copy to the storage path on job b

Flatten Directories: Remove the path from the job test and store the war package directly in the job B workspace

Execute job B, open the working directory, and discover that there is one more war package in the current working directory:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.