Grant copy artIfact permission in multi-branch pipeline
In declarative pipelines, this is the preferred syntax:
options {
copyArtifactPermission('my-downstream-project');
}
Available from version 1.41 of Copy Artifact.
For Scripted Pipeline Syntax, this works:
properties([[$class: 'CopyArtifactPermissionProperty', projectNames: 'Other Project Name'], [$class: 'RebuildSettings', autoRebuild: false, rebuildDisabled: false], pipelineTriggers([])])