Chapter 16. Secure Copy Plugin

Introduction

The Secure Copy plugin provides the ability to share artifacts meeting defined criteria between two jobs on different Jenkins instances (or the same Jenkins instance). The job that will consume the artifacts creates an import build step and is assigned a random key for that build step. The job that will produce the artifacts is then (manually) given the importer’s key and generates a secret which is (manually) given to the import build step. This sets up the trusted channel between the two jobs. Every time the consuming job runs, it will copy the latest build artifacts meeting the criteria defined in the producing job.

The Secure Copy plugin was introduced in Jenkins Enterprise 12.04.