Package hudson.plugins.copyartifact
Class CopyArtifactPermissionProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
Job Property to define projects that can copy artifacts of this project.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
FieldsFields inherited from class hudson.model.JobProperty
owner
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canCopiedBy
(Job<?, ?> copier) static boolean
canCopyArtifact
(Job<?, ?> copier, Job<?, ?> copiee) Convenient wrapper forcanCopiedBy(Job)
Methods inherited from class hudson.model.JobProperty
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, setOwner
-
Field Details
-
PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
CopyArtifactPermissionProperty
Constructor- Parameters:
projectNames
- comma-separated project names that can copy artifacts of this project.
-
-
Method Details
-
getProjectNameList
- Returns:
- list of project names that can copy artifacts of this project.
-
getProjectNames
- Returns:
- comma-separated project names that can copy artifacts of this project.
-
canCopiedBy
- Parameters:
copier
- a project who wants to copy artifacts of this project.- Returns:
- whether copier is allowed to copy artifacts of this project.
-
canCopyArtifact
Convenient wrapper forcanCopiedBy(Job)
- Parameters:
copier
- a project that wants to copy artifacts of copiee.copiee
- a owner of artifacts.- Returns:
- whether copier can copy artifacts of copiee.
-