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: