I
discovered the Copy Artifact plugin and was all happy when it worked for
me. But when I went back to my configuration which makes use of a Jenkinsfile
that option wasn’t available. There is
no Build section in the configuration.
The first one is a “freestyle” configuration and the other a “pipeline” configuration, maybe?
Is there a feature like this available in the Jenkinsfile?
Thanks
node {
step ([$class: 'CopyArtifact', projectName: 'Create_Infrastructure_archive']);
pipeline {
agent any
stages {
stage('Build') {
steps {
script {
[$class: 'CopyArtifact', projectName: 'Create_Infrastructure_archive']
}
Any ideas? Thanks.