From 0ad62dec491abfbaa61b00edf0bc20734825d0f3 Mon Sep 17 00:00:00 2001 From: s407323 Date: Fri, 26 Apr 2019 11:13:08 +0200 Subject: [PATCH] CopyArtifact (Jenkinsfile) - use with declarative pipelines --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 96cafbe..d1c78f1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,5 +6,15 @@ pipeline { echo 'Hello world!' } } + stage('Copy Archive') { + steps { + script { + step ([$class: 'CopyArtifact', + projectName: 'Create_archive', + filter: "packages/infra*.zip", + target: 'Infra']); + } + } + } } } \ No newline at end of file