DependencyGraph.Dependency
and evaluates RunCondition
when the dependency is triggered.ConditionalPublisher
to run aggregators.ConditionalPublisher
to run publishers.MatrixAggregator
for the wrapped Publisher
.defaultPublisherDescriptor.displayName
: Default
publisher lister
.BuildStepRunner
.FailAtEndExecutionStragery.DisplayName
: Fail at
end
.BuildStepRunner
.FailFastExecutionStragery.DisplayName
: Fail fast
.ConditionalPublisher.getPublisherList()
insteadjobUpdated.theProjectIsNull
: The project is null
.jobUpdater.canMovePublishers
: Enabled publishers
that can be moved:
.jobUpdater.cannotMovePublishers
: Enabled publishers
that cannot be moved:
.jobUpdater.publisherNotAllowed
: Publisher [{0}] is
not allowed as a Flexible publish action.jobUpdater.publisherNotFound
: Could not find
publisher [{0}].jobUpdater.success
: Done.
.
import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
def job = hudson.model.Hudson.instance.getItem('xxx')
list job
// Or, if you like doing it the hard way ...
import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
def job = hudson.model.Hudson.instance.getItem('xxx')
listCanMove job
import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
def job = hudson.model.Hudson.instance.getItem('xxx')
listCannotMove job
// Or, if you like doing it the hard way ...BuildStepRunner
.MatrixAggregator.endBuild()
for all publishes.MatrixAggregator.endRun(MatrixRun)
for all publishes.MatrixAggregator.startBuild()
for all publishes.
import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
def job = hudson.model.Hudson.instance.getItem('xxx')
movePublisher job, 'archive the artifacts'
Once executed, go to the configure page to check that everything looks OK, then save the configurationBuildStep.prebuild(AbstractBuild, BuildListener)
of all build steps.BuildStep.prebuild(AbstractBuild, BuildListener)
of all build steps.BuildStep.perform(AbstractBuild, Launcher, BuildListener)
for all publishes.BuildStep.prebuild(AbstractBuild, BuildListener)
of all build steps.BuildStep.prebuild(AbstractBuild, BuildListener)
of all build steps.BuildStep.prebuild(AbstractBuild, BuildListener)
for all publishers.publisher.displayName
: Flexible publish
.defaultPublisherDescriptor.displayName
: Default
publisher lister
.FailAtEndExecutionStragery.DisplayName
: Fail at
end
.FailFastExecutionStragery.DisplayName
: Fail fast
.jobUpdated.theProjectIsNull
: The project is null
.jobUpdater.canMovePublishers
: Enabled publishers
that can be moved:
.jobUpdater.cannotMovePublishers
: Enabled publishers
that cannot be moved:
.jobUpdater.publisherNotAllowed
: Publisher [{0}] is
not allowed as a Flexible publish action.jobUpdater.publisherNotFound
: Could not find
publisher [{0}].jobUpdater.success
: Done.
.publisher.displayName
: Flexible publish
.Copyright © 2016–2021. All rights reserved.