The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
pipelineTriggers
triggers
$class: 'AmqpBuildTrigger'
Add one or more AMQP message source(s) that will provide messages used to trigger a build.
amqpBrokerParamsList
(optional)
username : String
url : String
(optional)
URL for the AMQP source (typically a queue or topic) which will host the queue or topic from which trigger messages will be received.
Format: amqp[s]://<broker-ip-address>[:<port>]
Required
password
(optional)
If the server requires authentication, then this field must contain the user's password.
If no authentication is required, then leave blank.
class hudson.util.Secret
sourceAddr : String
(optional)
The address of an AMQP message source from which trigger messages will be received. This is frequently a queue or topic on an AMQP broker. The source address must exist, or the server must be capable of creating it on-demand if it does not exist (which may require some server configuration).
Required
user : String
(optional)
If the broker requires authentication, then this field must contain the user's ID.
If no authentication is required, then leave blank.
$class: 'ArtifactoryMultibranchTrigger'
details
artifactoryName : String
artifactoryUrl : String
deployReleaseRepository
keyFromText : String
keyFromSelect : String
dynamicMode : boolean
deploySnapshotRepository
keyFromText : String
keyFromSelect : String
dynamicMode : boolean
resolveReleaseRepository
keyFromText : String
keyFromSelect : String
dynamicMode : boolean
resolveSnapshotRepository
keyFromText : String
keyFromSelect : String
dynamicMode : boolean
userPluginKey : String
userPluginParams : String
paths : String
spec : String
branches : String
$class: 'ArtifactoryTrigger'
paths : String
spec : String
details
(optional)
artifactoryName : String
artifactoryUrl : String
deployReleaseRepository
keyFromText : String
keyFromSelect : String
dynamicMode : boolean
deploySnapshotRepository
keyFromText : String
keyFromSelect : String
dynamicMode : boolean
resolveReleaseRepository
keyFromText : String
keyFromSelect : String
dynamicMode : boolean
resolveSnapshotRepository
keyFromText : String
keyFromSelect : String
dynamicMode : boolean
userPluginKey : String
userPluginParams : String
$class: 'AssemblaBuildTrigger'
spaceName : String
repoName : String
buildOnMergeRequestEnabled : boolean
mergeRequestCommentsEnabled : boolean
ticketCommentsEnabled : boolean
notifyOnStartEnabled : boolean
buildOnMergeRequestMergedEnabled : boolean
buildOnMergeRequestIgnoredEnabled : boolean
triggerOnPushEnabled : boolean
branchesToBuild : String
buildDescriptionTemplate : String
buildStartedTemplate : String
buildResultTemplate : String
$class: 'BitBucketMultibranchTrigger'
overrideUrl : String
(optional)
bitBucketTrigger
triggers
$class: 'BitBucketPPRPullRequestServerTriggerFilter'
actionFilter
$class: 'BitBucketPPRPullRequestServerApprovedActionFilter'
triggerOnlyIfAllReviewersApproved : boolean
allowedBranches : String
(optional)
$class: 'BitBucketPPRPullRequestServerCommentCreatedActionFilter'
allowedBranches : String
(optional)
commentFilter : String
(optional)
$class: 'BitBucketPPRPullRequestServerCreatedActionFilter'
allowedBranches : String
(optional)
isToApprove : boolean
(optional)
isToDecline : boolean
(optional)
$class: 'BitBucketPPRPullRequestServerDeclinedActionFilter'
allowedBranches : String
(optional)
$class: 'BitBucketPPRPullRequestServerMergedActionFilter'
allowedBranches : String
(optional)
isToApprove : boolean
(optional)
$class: 'BitBucketPPRPullRequestServerSourceUpdatedActionFilter'
allowedBranches : String
(optional)
isToApprove : boolean
(optional)
isToDecline : boolean
(optional)
$class: 'BitBucketPPRPullRequestServerUpdatedActionFilter'
allowedBranches : String
(optional)
isToApprove : boolean
(optional)
isToDecline : boolean
(optional)
$class: 'BitBucketPPRPullRequestTriggerFilter'
actionFilter
$class: 'BitBucketPPRPullRequestApprovedActionFilter'
triggerOnlyIfAllReviewersApproved : boolean
allowedBranches : String
(optional)
$class: 'BitBucketPPRPullRequestCommentCreatedActionFilter'
allowedBranches : String
(optional)
commentFilter : String
(optional)
$class: 'BitBucketPPRPullRequestCommentDeletedActionFilter'
allowedBranches : String
(optional)
$class: 'BitBucketPPRPullRequestCommentUpdatedActionFilter'
allowedBranches : String
(optional)
commentFilter : String
(optional)
$class: 'BitBucketPPRPullRequestCreatedActionFilter'
allowedBranches : String
(optional)
isToApprove : boolean
(optional)
isToDecline : boolean
(optional)
$class: 'BitBucketPPRPullRequestDeclinedActionFilter'
allowedBranches : String
(optional)
$class: 'BitBucketPPRPullRequestMergedActionFilter'
allowedBranches : String
(optional)
isToApprove : boolean
(optional)
$class: 'BitBucketPPRPullRequestUpdatedActionFilter'
allowedBranches : String
(optional)
isToApprove : boolean
(optional)
isToDecline : boolean
(optional)
$class: 'BitBucketPPRRepositoryTriggerFilter'
actionFilter
$class: 'BitBucketPPRRepositoryPushActionFilter'
triggerAlsoIfTagPush : boolean
triggerAlsoIfNothingChanged : boolean
allowedBranches : String
isToApprove : boolean
(optional)
triggerOnlyIfTagPush : boolean
(optional)
$class: 'BitBucketPPRServerRepositoryPushActionFilter'
triggerAlsoIfTagPush : boolean
triggerAlsoIfNothingChanged : boolean
allowedBranches : String
isToApprove : boolean
(optional)
triggerOnlyIfTagPush : boolean
(optional)
credentialsId : String
(optional)
bitbucketPush
buildOnCreatedBranch : boolean
(optional)
overrideUrl : String
(optional)
bitbucketpr
Builds pull requests from Bitbucket.org and will report the test results.
This plugin requires Git SCM plugin configured as follows:
projectPath : String
bitbucketServer : String
cron : String
credentialsId : String
username : String
password : String
repositoryOwner : String
repositoryName : String
branchesFilter : String
branchesFilterBySCMIncludes : boolean
ciKey : String
ciName : String
ciSkipPhrases : String
checkDestinationCommit : boolean
approveIfSuccess : boolean
cancelOutdatedJobs : boolean
buildChronologically : boolean
commentTrigger : String
BitbucketWebhookMultibranchTrigger
pullRequestTrigger : boolean
This triggers a branch scan after a pull request is opened, it also updates builds by disabling builds after a pull request is declined, deleted, or merged.
refTrigger : boolean
This triggers a branch scan after new code is pushed.
BitbucketWebhookTriggerImpl
pullRequestTrigger : boolean
This triggers a build after a pull request is opened, or the source branch of a pull request is updated.
refTrigger : boolean
This triggers a build in Bitbucket after every push to the configured repository.
$class: 'BuildResultTrigger'
cronTabSpec : String
combinedJobs : boolean
jobsInfo
jobNames : String
checkedResults
result : String
Give a build result to monitor for the selected job.
ciBuildTrigger
noSquash : boolean
(optional)
Schedule a new job for every triggering message.
Normally if a job is queued and another triggering message is received, a new job is not submitted and the job is "squashed" into the job already queued. Checking this option forces a new job to be submitted for every triggering message that is received.
providerData
(optional)
activeMQPublisher
failOnError : boolean
(optional)
Whether you want to fail the build if there is an error sending a message. By default, it is false.
messageContent : String
(optional)
Content of CI message to be sent. Environment variable values may be used in the content to allow customization of the message. Environment variables should use the familiar bash shell format, e.g. ${VARIABLE}.
messageProperties : String
(optional)
KEY=value pairs, one per line (Java properties file format) to be used as message properties. Backslashes are used for escaping, so use "\\" for a single backslash. Current build parameters and/or environment variables can be used in form: ${PARAM}.
messageType
(optional)
Type of CI message to be sent.
CodeQualityChecksDone
, ComponentBuildDone
, Custom
, EarlyPerformanceTestingDone
, EarlySecurityTestingDone
, ImageUploaded
, FunctionalTestCoverageDone
, FunctionalTestingDone
, NonfunctionalTestingDone
, OotbTestingDone
, PeerReviewDone
, ProductAcceptedForReleaseTesting
, ProductBuildDone
, ProductBuildInStaging
, ProductTestCoverageDone
, PullRequest
, SecurityChecksDone
, TestingStarted
, TestingCompleted
, Tier0TestingDone
, Tier1TestingDone
, Tier2IntegrationTestingDone
, Tier2ValidationTestingDone
, Tier3TestingDone
, UnitTestCoverageDone
, UpdateDefectStatus
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
activeMQSubscriber
checks
(optional)
field : String
expectedValue : String
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
selector : String
(optional)
JMS selector to choose messages that will fire the trigger.
timeout : int
(optional)
Value (in minutes) to wait for a message matching the specified JMS selector.
variable : String
(optional)
Environment variable to hold received message content.
fedmsgPublisher
failOnError : boolean
(optional)
Whether you want to fail the build if there is an error sending a message. By default, it is false.
messageContent : String
(optional)
Content of CI message to be sent at job completion. Environment variable values may be used in the content to allow customization of the message. Environment variables should use the familiar bash shell format, e.g. ${VARIABLE}.
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
fedmsgSubscriber
checks
(optional)
field : String
expectedValue : String
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
timeout : int
(optional)
Value (in minutes) to wait for a message matching the specified JMS selector.
variable : String
(optional)
Environment variable to hold received message content.
rabbitMQPublisher
failOnError : boolean
(optional)
Whether you want to fail the build if there is an error sending a message. By default, it is false.
fedoraMessaging : boolean
(optional)
messageContent : String
(optional)
Content of CI message to be sent. Environment variable values may be used in the content to allow customization of the message. Environment variables should use the familiar bash shell format, e.g. ${VARIABLE}.
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
schema : String
(optional)
Path to message schema.
severity : int
(optional)
Severity of the message.
rabbitMQSubscriber
checks
(optional)
field : String
expectedValue : String
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
timeout : int
(optional)
Value (in minutes) to wait for a message.
variable : String
(optional)
Environment variable to hold received message content.
providerList
(optional)
activeMQPublisher
failOnError : boolean
(optional)
Whether you want to fail the build if there is an error sending a message. By default, it is false.
messageContent : String
(optional)
Content of CI message to be sent. Environment variable values may be used in the content to allow customization of the message. Environment variables should use the familiar bash shell format, e.g. ${VARIABLE}.
messageProperties : String
(optional)
KEY=value pairs, one per line (Java properties file format) to be used as message properties. Backslashes are used for escaping, so use "\\" for a single backslash. Current build parameters and/or environment variables can be used in form: ${PARAM}.
messageType
(optional)
Type of CI message to be sent.
CodeQualityChecksDone
, ComponentBuildDone
, Custom
, EarlyPerformanceTestingDone
, EarlySecurityTestingDone
, ImageUploaded
, FunctionalTestCoverageDone
, FunctionalTestingDone
, NonfunctionalTestingDone
, OotbTestingDone
, PeerReviewDone
, ProductAcceptedForReleaseTesting
, ProductBuildDone
, ProductBuildInStaging
, ProductTestCoverageDone
, PullRequest
, SecurityChecksDone
, TestingStarted
, TestingCompleted
, Tier0TestingDone
, Tier1TestingDone
, Tier2IntegrationTestingDone
, Tier2ValidationTestingDone
, Tier3TestingDone
, UnitTestCoverageDone
, UpdateDefectStatus
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
activeMQSubscriber
checks
(optional)
field : String
expectedValue : String
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
selector : String
(optional)
JMS selector to choose messages that will fire the trigger.
timeout : int
(optional)
Value (in minutes) to wait for a message matching the specified JMS selector.
variable : String
(optional)
Environment variable to hold received message content.
fedmsgPublisher
failOnError : boolean
(optional)
Whether you want to fail the build if there is an error sending a message. By default, it is false.
messageContent : String
(optional)
Content of CI message to be sent at job completion. Environment variable values may be used in the content to allow customization of the message. Environment variables should use the familiar bash shell format, e.g. ${VARIABLE}.
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
fedmsgSubscriber
checks
(optional)
field : String
expectedValue : String
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
timeout : int
(optional)
Value (in minutes) to wait for a message matching the specified JMS selector.
variable : String
(optional)
Environment variable to hold received message content.
rabbitMQPublisher
failOnError : boolean
(optional)
Whether you want to fail the build if there is an error sending a message. By default, it is false.
fedoraMessaging : boolean
(optional)
messageContent : String
(optional)
Content of CI message to be sent. Environment variable values may be used in the content to allow customization of the message. Environment variables should use the familiar bash shell format, e.g. ${VARIABLE}.
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
schema : String
(optional)
Path to message schema.
severity : int
(optional)
Severity of the message.
rabbitMQSubscriber
checks
(optional)
field : String
expectedValue : String
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
timeout : int
(optional)
Value (in minutes) to wait for a message.
variable : String
(optional)
Environment variable to hold received message content.
providers
(optional)
providerData
activeMQPublisher
failOnError : boolean
(optional)
Whether you want to fail the build if there is an error sending a message. By default, it is false.
messageContent : String
(optional)
Content of CI message to be sent. Environment variable values may be used in the content to allow customization of the message. Environment variables should use the familiar bash shell format, e.g. ${VARIABLE}.
messageProperties : String
(optional)
KEY=value pairs, one per line (Java properties file format) to be used as message properties. Backslashes are used for escaping, so use "\\" for a single backslash. Current build parameters and/or environment variables can be used in form: ${PARAM}.
messageType
(optional)
Type of CI message to be sent.
CodeQualityChecksDone
, ComponentBuildDone
, Custom
, EarlyPerformanceTestingDone
, EarlySecurityTestingDone
, ImageUploaded
, FunctionalTestCoverageDone
, FunctionalTestingDone
, NonfunctionalTestingDone
, OotbTestingDone
, PeerReviewDone
, ProductAcceptedForReleaseTesting
, ProductBuildDone
, ProductBuildInStaging
, ProductTestCoverageDone
, PullRequest
, SecurityChecksDone
, TestingStarted
, TestingCompleted
, Tier0TestingDone
, Tier1TestingDone
, Tier2IntegrationTestingDone
, Tier2ValidationTestingDone
, Tier3TestingDone
, UnitTestCoverageDone
, UpdateDefectStatus
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
activeMQSubscriber
checks
(optional)
field : String
expectedValue : String
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
selector : String
(optional)
JMS selector to choose messages that will fire the trigger.
timeout : int
(optional)
Value (in minutes) to wait for a message matching the specified JMS selector.
variable : String
(optional)
Environment variable to hold received message content.
fedmsgPublisher
failOnError : boolean
(optional)
Whether you want to fail the build if there is an error sending a message. By default, it is false.
messageContent : String
(optional)
Content of CI message to be sent at job completion. Environment variable values may be used in the content to allow customization of the message. Environment variables should use the familiar bash shell format, e.g. ${VARIABLE}.
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
fedmsgSubscriber
checks
(optional)
field : String
expectedValue : String
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
timeout : int
(optional)
Value (in minutes) to wait for a message matching the specified JMS selector.
variable : String
(optional)
Environment variable to hold received message content.
rabbitMQPublisher
failOnError : boolean
(optional)
Whether you want to fail the build if there is an error sending a message. By default, it is false.
fedoraMessaging : boolean
(optional)
messageContent : String
(optional)
Content of CI message to be sent. Environment variable values may be used in the content to allow customization of the message. Environment variables should use the familiar bash shell format, e.g. ${VARIABLE}.
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
schema : String
(optional)
Path to message schema.
severity : int
(optional)
Severity of the message.
rabbitMQSubscriber
checks
(optional)
field : String
expectedValue : String
name : String
(optional)
overrides
(optional)
topic : String
(optional)
queue : String
(optional)
timeout : int
(optional)
Value (in minutes) to wait for a message.
variable : String
(optional)
Environment variable to hold received message content.
$class: 'CodingPushTrigger'
webHookToken : String
apiToken : String
personalToken : String
triggerOnMergeRequest : boolean
mergeRequestTriggerAction : String
triggerOnPush : boolean
addResultNote : boolean
ciSkip : boolean
branchFilterType
All
, NameBasedFilter
, RegexBasedFilter
includeBranchesSpec : String
excludeBranchesSpec : String
targetBranchRegex : String
$class: 'ComputedFolderWebHookTrigger'
Allows Multibranch Scan Webhook Trigger to trigger scan of this multibranch job.
token : String
$class: 'CronFolderTrigger'
crontab : String
enabled : boolean
$class: 'DeployDbTrigger'
silentMode : boolean
(optional)
triggerEventTypes
(optional)
$class: 'DeploymentCompletedEvent'
serviceNameRegex : String
(optional)
$class: 'DeploymentCreatedEvent'
serviceNameRegex : String
(optional)
$class: 'DeploymentStartedEvent'
serviceNameRegex : String
(optional)
$class: 'PromotionCompletedEvent'
serviceNameRegex : String
(optional)
$class: 'DockerHubTrigger'
options
(optional)
$class: 'TriggerForAllUsedInJob'
$class: 'TriggerOnSpecifiedImageNames'
repoNames : Array / List of String
(optional)
$class: 'DosTrigger'
schedule : String
script : String
$class: 'ElOyente'
El Oyente (The Listener: Spanish)
Configure a Jenkins job to be triggered on XMPP events.
This plugin integrates XMPP Pub/Sub into Jenkins, which allows jobs to be triggered on XMPP events. XMPP Pub/Sub makes it possible to let distinct services communicate with each other via a pub/sub enabled XMPP chat server.
s
filter : String
node : String
v
envName : String
envExpr : String
$class: 'FanInReverseBuildTrigger'
Set up a trigger so that when some other projects finish building, a new build is scheduled for this project. This is convenient for running an extensive test after a build is complete, for example.
This configuration complements the "Build other projects" section in the "Post-build Actions" of an upstream project, but is preferable when you want to configure the downstream project.
upstreamProjects : String
watchUpstreamRecursively : boolean
threshold : String
$class: 'FeatureBranchAwareTrigger'
Note that this is going to be an expensive operation for CVS, as every polling requires Jenkins to scan the entire workspace and verify it with the server. Consider setting up a "push" trigger to avoid this overhead, as described in this document
scmpoll_spec : String
ignorePostCommitHooks : boolean
(optional)
This can be useful if you want to prevent some long-running jobs (e.g. reports) starting because of every commit, but still want to run them periodic if SCM changes have occurred.
Note that this option needs to be supported by the SCM plugin, too! The subversion-plugin supports this since version 1.44.
$class: 'FilesFoundTrigger'
spec : String
configs
node : String
Environment variable during the build: filesfound_setting_node
directory : String
Environment variable during the build: filesfound_setting_directory
files : String
Environment variable during the build: filesfound_setting_files
ignoredFiles : String
Environment variable during the build: filesfound_setting_ignoredfiles
triggerNumber : String
Environment variable during the build: filesfound_setting_triggernumber
$class: 'FogbugzStatePoller'
This feature is primarily for using Jenkins as a cron replacement, and it is not ideal for continuously building software projects . When people first start continuous integration, they are often so used to the idea of regularly scheduled builds like nightly/weekly that they use this feature. However, the point of continuous integration is to start a build as soon as a change is made, to provide a quick feedback to the change. To do that you need to hook up SCM change notification to Jenkins .
So, before using this feature, stop and ask yourself if this is really what you want.
spec : String
ciProject : String
ciProjectField : String
$class: 'FolderContentTrigger'
cronTabSpec : String
path : String
Folder path to poll.
By default, all files of the specified folder are checked. You can restrict to some files by giving more information in the 'Advanced' section.
includes : String
excludes : String
Optionally specify the 'excludes' pattern, such as "foo/bar/**/*". A file that matches this mask will not be polled even if it matches the mask specified in 'includes' section.
excludeCheckLastModificationDate : boolean
excludeCheckContent : boolean
excludeCheckFewerOrMoreFiles : boolean
GenericTrigger
Allows Generic Webhook Trigger to trigger this job.
genericVariables
key : String
value : String
defaultValue : String
(optional)
expressionType
(optional)
XPath
, JSONPath
regexpFilter : String
(optional)
genericRequestVariables
key : String
regexpFilter : String
genericHeaderVariables
key : String
regexpFilter : String
allowSeveralTriggersPerBuild : boolean
(optional)
causeString : String
(optional)
overrideQuietPeriod : boolean
(optional)
printContributedVariables : boolean
(optional)
printPostContent : boolean
(optional)
regexpFilterExpression : String
(optional)
regexpFilterText : String
(optional)
shouldNotFlatten : boolean
(optional)
shouldNotFlattern : boolean
(optional)
silentResponse : boolean
(optional)
token : String
(optional)
tokenCredentialId : String
(optional)
gerrit
gerritProjects
compareType
PLAIN
, ANT
, REG_EXP
pattern : String
branches
compareType
PLAIN
, ANT
, REG_EXP
pattern : String
topics
compareType
PLAIN
, ANT
, REG_EXP
pattern : String
filePaths
compareType
PLAIN
, ANT
, REG_EXP
pattern : String
forbiddenFilePaths
compareType
PLAIN
, ANT
, REG_EXP
pattern : String
disableStrictForbiddenFileVerification : boolean
buildAbortedMessage : String
(optional)
buildCancellationPolicy
(optional)
abortNewPatchsets : boolean
abortManualPatchsets : boolean
abortSameTopic : boolean
abortAbandonedPatchsets : boolean
buildFailureMessage : String
(optional)
buildNotBuiltMessage : String
(optional)
buildStartMessage : String
(optional)
buildSuccessfulMessage : String
(optional)
buildUnstableMessage : String
(optional)
buildUnsuccessfulFilepath : String
(optional)
changeSubjectParameterMode
(optional)
How the change subject parameter (GERRIT_CHANGE_SUBJECT) should be added to the build, if available.
PLAIN
, BASE64
, NONE
commentTextParameterMode
(optional)
How the comment text parameter (GERRIT_EVENT_COMMENT_TEXT) should be added to the build, if available.
PLAIN
, BASE64
, NONE
commitMessageParameterMode
(optional)
How the commit message parameter (GERRIT_CHANGE_COMMIT_MESSAGE) should be added to the build, if available.
PLAIN
, BASE64
, NONE
customUrl : String
(optional)
dependencyJobsNames : String
(optional)
dynamicTriggerConfiguration : boolean
(optional)
escapeQuotes : boolean
(optional)
gerritBuildAbortedCodeReviewValue : int
(optional)
gerritBuildAbortedVerifiedValue : int
(optional)
gerritBuildFailedCodeReviewValue : int
(optional)
gerritBuildFailedVerifiedValue : int
(optional)
gerritBuildNotBuiltCodeReviewValue : int
(optional)
gerritBuildNotBuiltVerifiedValue : int
(optional)
gerritBuildStartedCodeReviewValue : int
(optional)
gerritBuildStartedVerifiedValue : int
(optional)
gerritBuildSuccessfulCodeReviewValue : int
(optional)
gerritBuildSuccessfulVerifiedValue : int
(optional)
gerritBuildUnstableCodeReviewValue : int
(optional)
gerritBuildUnstableVerifiedValue : int
(optional)
gerritSlaveId : String
(optional)
nameAndEmailParameterMode
(optional)
How the "Compound name and email parameters" should be added to the build. I.e.
PLAIN
, BASE64
, NONE
notificationLevel : String
(optional)
serverName : String
(optional)
silentMode : boolean
(optional)
silentStartMode : boolean
(optional)
skipVote
(optional)
onSuccessful : boolean
onFailed : boolean
onUnstable : boolean
onNotBuilt : boolean
onAborted : boolean
topicAssociation
(optional)
ignoreNewChangeStatus : boolean
ignoreMergedChangeStatus : boolean
ignoreAbandonedChangeStatus : boolean
triggerConfigURL : String
(optional)
triggerOnEvents
(optional)
changeAbandoned
changeMerged
changeRestored
commentAddedContains
commentAddedCommentContains : String
commentAdded
verdictCategory : String
commentAddedTriggerApprovalValue : String
draftPublished
patchsetCreated
commitMessageContainsRegEx : String
(optional)
excludeDrafts : boolean
(optional)
excludeNoCodeChange : boolean
(optional)
excludePrivateState : boolean
(optional)
excludeTrivialRebase : boolean
(optional)
excludeWipState : boolean
(optional)
uploaderNameContainsRegEx : String
(optional)
privateStateChanged
refUpdated
rerunCheck
topicChanged
wipStateChanged
$class: 'GhprbTrigger'
adminlist : String
whitelist : String
orgslist : String
cron : String
triggerPhrase : String
onlyTriggerPhrase : boolean
useGitHubHooks : boolean
org.jenkinsci.plugins.ghprb.GhprbRepository.webhook.insecure
set to true
.
issue_comment
, pull_request
and url < your jenkins server url >/ghprbhook/
. The url should be composed of your full jenkins server url plus the ending /ghprbhook/
path. If your jenkins server is just a domain like https://jenkins.yourcompany.com then the url would look like https://jenkins.yourcompany.com/ghprbhook/. If your jenkins server is accessed at a path off of a domain like https://yourcompany.com/jenkins then the url would look like https://yourcompany.com/jenkins/ghprbhook/
permitAll : boolean
autoCloseFailedPullRequests : boolean
displayBuildErrorsOnDownstreamBuilds : boolean
commentFilePath : String
skipBuildPhrase : String
blackListCommitAuthor : String
whiteListTargetBranches
branch : String
blackListTargetBranches
branch : String
allowMembersOfWhitelistedOrgsAsAdmin : boolean
msgSuccess : String
msgFailure : String
commitStatusContext : String
gitHubAuthId : String
buildDescTemplate : String
blackListLabels : String
whiteListLabels : String
extensions
$class: 'GhprbBuildLog'
logExcerptLines : int
$class: 'GhprbBuildStatus'
messages
result
PENDING
, SUCCESS
, ERROR
, FAILURE
message : String
$class: 'GhprbCancelBuildsOnUpdate'
overrideGlobal : boolean
$class: 'GhprbCommentFile'
commentFilePath : String
$class: 'GhprbNoCommitStatus'
$class: 'GhprbPublishJenkinsUrl'
publishedURL : String
$class: 'GhprbSimpleStatus'
showMatrixStatus : boolean
commitStatusContext : String
statusUrl : String
triggeredStatus : String
startedStatus : String
addTestResults : boolean
completedStatus
result
PENDING
, SUCCESS
, ERROR
, FAILURE
message : String
includedRegions : String
myapp/src/main/web/.*\.html myapp/src/main/web/.*\.jpeg myapp/src/main/web/.*\.gif
excludedRegions : String
myapp/src/main/web/.*\.html myapp/src/main/web/.*\.jpeg myapp/src/main/web/.*\.gif
$class: 'GitBucketPushTrigger'
passThroughGitCommit : boolean
githubBranches
spec : String
triggerMode
CRON
, HEAVY_HOOKS
, HEAVY_HOOKS_CRON
, LIGHT_HOOKS
events
commit
checks
commitMessagePattern
exclude : boolean
(optional)
matchCriteria : String
(optional)
branchCreated
deleted
hashChanged
restriction
exclude : boolean
(optional)
matchAsPattern : boolean
(optional)
matchCriteriaStr : String
(optional)
abortRunning : boolean
(optional)
cancelQueued : boolean
(optional)
preStatus : boolean
(optional)
repoProviders
(optional)
githubPlugin
cacheConnection : boolean
(optional)
manageHooks : boolean
(optional)
repoPermission
(optional)
ADMIN
, PUSH
, PULL
skipFirstRun : boolean
(optional)
githubPullRequests
spec : String
triggerMode
CRON
, HEAVY_HOOKS
, HEAVY_HOOKS_CRON
, LIGHT_HOOKS
events
close
commentPattern
comment : String
commitChanged
description
skipMsg : String
labelsAdded
label
labels : String
Every new label on new line
labelsExist
label
labels : String
Every new label on new line
skip : boolean
labelsNotExist
label
labels : String
Every new label on new line
skip : boolean
labelsPatternExists
label
labels : String
Every new label on new line
skip : boolean
labelsRemoved
label
labels : String
Every new label on new line
nonMergeable
skip : boolean
Number
number : int
match : boolean
skip : boolean
Open
abortRunning : boolean
(optional)
branchRestriction
(optional)
targetBranch : String
cancelQueued : boolean
(optional)
preStatus : boolean
(optional)
repoProviders
(optional)
githubPlugin
cacheConnection : boolean
(optional)
manageHooks : boolean
(optional)
repoPermission
(optional)
ADMIN
, PUSH
, PULL
skipFirstRun : boolean
(optional)
userRestriction
(optional)
orgs : String
users : String
githubPush
gitlab
acceptMergeRequestOnSuccess : boolean
(optional)
addCiMessage : boolean
(optional)
addNoteOnMergeRequest : boolean
(optional)
addVoteOnMergeRequest : boolean
(optional)
branchFilterName : String
(optional)
branchFilterType
(optional)
All
, NameBasedFilter
, RegexBasedFilter
cancelPendingBuildsOnUpdate : boolean
(optional)
ciSkip : boolean
(optional)
ci-skip
.
excludeBranchesSpec : String
(optional)
includeBranchesSpec : String
(optional)
labelsThatForcesBuildIfAdded : String
(optional)
mergeRequestLabelFilterConfig
(optional)
exclude : String
(optional)
include : String
(optional)
noteRegex : String
(optional)
pendingBuildName : String
(optional)
secretToken : String
(optional)
setBuildDescription : boolean
(optional)
skipWorkInProgressMergeRequest : boolean
(optional)
sourceBranchRegex : String
(optional)
targetBranchRegex : String
(optional)
triggerOnAcceptedMergeRequest : boolean
(optional)
triggerOnApprovedMergeRequest : boolean
(optional)
triggerOnClosedMergeRequest : boolean
(optional)
triggerOnMergeRequest : boolean
(optional)
triggerOnNoteRequest : boolean
(optional)
triggerOnPipelineEvent : boolean
(optional)
triggerOnPush : boolean
(optional)
triggerOnlyIfNewCommitsPushed : boolean
(optional)
triggerOpenMergeRequestOnPush
(optional)
never
, source
, both
triggerToBranchDeleteRequest : boolean
(optional)
gitee
acceptPullRequestOnSuccess : boolean
(optional)
addCiMessage : boolean
(optional)
addNoteOnPullRequest : boolean
(optional)
addVoteOnPullRequest : boolean
(optional)
branchFilterName : String
(optional)
branchFilterType
(optional)
All
, NameBasedFilter
, RegexBasedFilter
buildInstructionFilterType
(optional)
NONE
, CI_SKIP
, CI_BUILD
cancelIncompleteBuildOnSamePullRequest : boolean
(optional)
cancelPendingBuildsOnUpdate : boolean
(optional)
ciBuildForDeleteRef : boolean
(optional)
ciSkip : boolean
(optional)
ciSkipFroTestNotRequired : boolean
(optional)
excludeBranchesSpec : String
(optional)
ignorePullRequestConflicts : boolean
(optional)
includeBranchesSpec : String
(optional)
noteRegex : String
(optional)
pendingBuildName : String
(optional)
pullRequestLabelFilterConfig
(optional)
exclude : String
(optional)
include : String
(optional)
secretToken : String
(optional)
setBuildDescription : boolean
(optional)
skipLastCommitHasBeenBuild : boolean
(optional)
skipWorkInProgressPullRequest : boolean
(optional)
targetBranchRegex : String
(optional)
triggerOnAcceptedPullRequest : boolean
(optional)
triggerOnApprovedPullRequest : boolean
(optional)
triggerOnClosedPullRequest : boolean
(optional)
triggerOnCommitComment : boolean
(optional)
triggerOnNoteRequest : boolean
(optional)
triggerOnOpenPullRequest : boolean
(optional)
triggerOnPipelineEvent : boolean
(optional)
triggerOnPush : boolean
(optional)
triggerOnTestedPullRequest : boolean
(optional)
triggerOnUpdatePullRequest : String
(optional)
$class: 'GitlabBuildTrigger'
cron : String
projectPath : String
The project path on Gitlab. You can find the project path in the project SSH or HTTP path. For example, in "http://example.com/group/project.git", the project path would be "group/project".
targetBranchRegex : String
The target branch regex is used to allow execution of this job for certain branches. The regex will be not used when this field is left empty.
Examples:
# Allow execution for release and hotfix branches (.*release.*|.*hotfix.*) # Allow execution for dev branches only .*dev.*
useHttpUrl : boolean
assigneeFilter : String
tagFilter : String
triggerComment : String
autoCloseFailed : boolean
autoMergePassed : boolean
$class: 'GogsTrigger'
$class: 'HudsonStartupTrigger'
label : String
By default, the build is triggered when Jenkins instance starts.
You can specify a specific (or a list of) node name or a node label to trigger a build when nodes (whose names or labels corresponding to the specified value) start.
You can also specify the 'master' value to refer explicitly to Jenkins master.
quietPeriod : String
Give the quiet period before scheduling the job.
The time unit is in seconds.
'0' is the default value, the job is scheduling without any delay at startup.
nodeParameterName : String
Pass node name as job parameter.
Requires NodeLabel Parameter Plugin
runOnChoice : String
Run on initial connection
Toggle whether or not to run the job when agent connects to Jenkins (True by default)
Run when node brought online
Toggle whether to run the job when node is brought online (False by default)
issueCommentTrigger
commentPattern : String
$class: 'IvyTrigger'
cronTabSpec : String
ivyPath : String
ivySettingsPath : String
propertiesFilePath : String
propertiesContent : String
labelRestriction
triggerLabel : String
enableConcurrentBuild : boolean
debug : boolean
downloadArtifacts : boolean
$class: 'JiraChangelogTrigger'
changelogMatchers
(optional)
$class: 'CustomFieldChangelogMatcher'
field : String
newValue : String
oldValue : String
comparingNewValue : boolean
(optional)
comparingOldValue : boolean
(optional)
$class: 'JiraFieldChangelogMatcher'
field : String
newValue : String
oldValue : String
comparingNewValue : boolean
(optional)
comparingOldValue : boolean
(optional)
jqlFilter : String
(optional)
parameterMappings
(optional)
$class: 'CustomFieldParameterMapping'
jenkinsParameter : String
customFieldId : String
$class: 'IssueAttributePathParameterMapping'
JIRA attribute path resolves an attribute value from the JIRA issue that has triggered the job. The attribute value is resolved from JRJC Issue Object To understand how the attribute path works, refer to the example below.
Example attribute path
Attribute Path | Attribute Value |
id | 11120 |
description | description body |
summary | summary content |
status.name | To Do |
timeTracking.originalEstimateMinutes | 5 |
Example Issue JSON that will be parsed to become JRJC Issue Object
{ "expand": "renderedFields,names,schema,transitions,operations,editmeta,changelog,versionedRepresentations", "id": "11120", "self": "http://localhost:2990/jira/rest/api/2/issue/11120", "key": "TEST-136", "fields": { ... "description": "description body", "summary": "summary content", ... "status": { "name": "To Do", ... }, "timetracking": { "originalEstimate": "5m", "remainingEstimate": "10m", "originalEstimateSeconds": 300, "remainingEstimateSeconds": 600 } } }
jenkinsParameter : String
issueAttributePath : String
$class: 'JiraCommentTrigger'
commentPattern : String
(optional)
jqlFilter : String
(optional)
parameterMappings
(optional)
$class: 'CustomFieldParameterMapping'
jenkinsParameter : String
customFieldId : String
$class: 'IssueAttributePathParameterMapping'
JIRA attribute path resolves an attribute value from the JIRA issue that has triggered the job. The attribute value is resolved from JRJC Issue Object To understand how the attribute path works, refer to the example below.
Example attribute path
Attribute Path | Attribute Value |
id | 11120 |
description | description body |
summary | summary content |
status.name | To Do |
timeTracking.originalEstimateMinutes | 5 |
Example Issue JSON that will be parsed to become JRJC Issue Object
{ "expand": "renderedFields,names,schema,transitions,operations,editmeta,changelog,versionedRepresentations", "id": "11120", "self": "http://localhost:2990/jira/rest/api/2/issue/11120", "key": "TEST-136", "fields": { ... "description": "description body", "summary": "summary content", ... "status": { "name": "To Do", ... }, "timetracking": { "originalEstimate": "5m", "remainingEstimate": "10m", "originalEstimateSeconds": 300, "remainingEstimateSeconds": 600 } } }
jenkinsParameter : String
issueAttributePath : String
$class: 'KanboardQueryTrigger'
crontabSpec : String
projectIdentifier : String
query : String
referenceRegexp : String
The trigger will only activate for tasks whose reference matches the regular expression. No filtering will be done if left blank.
The eventual regexp matching groups will be exported to the KANBOARD_TASKREF_{index of group} environment variables.
For example:
The regular expression ([A-Z]+)-([0-9]+)
will match the reference ABC-12345
and will export the following environment variables:
KANBOARD_TASKREF=ABC-12345
KANBOARD_TASKREF_0=ABC
KANBOARD_TASKREF_1=12345
labelAddedTrigger
labelTriggerPattern : String
$class: 'LabeledFilterWebHookTrigger'
$class: 'MailCommandTrigger'
spec : String
$class: 'MavenDependencyUpdateTrigger'
cron_value : String
checkPlugins : boolean
$class: 'NugetTrigger'
cronTabSpec : String
checkPrerelease : boolean
useVerboseLogs : boolean
ontrackMultiTrigger
spec : String
triggers
project : String
branch : String
promotion : String
parameterName : String
minimumResult : String
ontrackTrigger
spec : String
project : String
branch : String
promotion : String
Name of the Ontrack promotion to check.
Possible values are:
X
parameterName : String
minimumResult : String
p4Trigger
parameterizedCron
parameterizedSpecification : String
Everything up till the % character is just like the normal Jenkins Cron-like scheduler. Then after the % character you should format your parameters as name value pairs separated by equals and semicolons: name=value;othername=othervalue
There are of course limitations to what can be passed as parameters. As well as what types of parameters can be assigned. The internal mechanism leans on the same HTTP POST request method for triggering builds as documented in Launching a build with parameters.
This is a first step toward solving this Jenkins issue.
Examples:
# every fifteen minutes (perhaps at :07, :22, :37, :52) H/15 * * * * %name=value # every ten minutes in the first half of every hour (three times, perhaps at :04, :14, :24) H(0-29)/10 * * * * % name=value; othername=othervalue # every fifteen minutes with timezone TZ=Australia/Sydney H/15 * * * * %name=value # every fifteen minutes with percent sign in param key/value H/15 * * * * %name=value;key=10%;
$class: 'PeriodicFolderTrigger'
Some kinds of folders are reindexed automatically and immediately upon receipt of an external event. For example, a multi-branch project will recheck its SCM repository for new or removed or modified branches when it receives an SCM change notification. (Push notification may be configured as per the SCM plugin used for each respective branch source.) Such notifications can occasionally be unreliable, however, or Jenkins might not even be running to receive them. In some cases no immediate notification is even possible, for example because Jenkins is behind a firewall and can only poll an external system.
This trigger allows for a periodic fallback, but when necessary. If no indexing has been performed in the specified interval, then an indexing will be scheduled. For example, in the case of a multi-branch project, if the source control system is not configured for push notification, set a short interval (most people will pick between 15 minutes and 1 hour). If the source control system is configured for push notification, set an interval that corresponds to the maximum acceptable delay in the event of a lost push notification as the last commit of the day. (Subsequent commits should trigger indexing anyway and result in the commit being picked up, so most people will pick between 4 hours and 1 day.)
interval : String
The maximum amount of time since the last indexing that is allowed to elapse before an indexing is triggered. For example: interval('5m') // or '2h', '7d', '5000ms', '60s'
acmPipelineStart
aioProject : String
program : String
pipeline : String
$class: 'PollMailboxTrigger'
cronTabSpec : String
labelRestriction
triggerLabel : String
enableConcurrentBuild : boolean
host : String
username : String
password
class hudson.util.Secret
script : String
# Connection configuration storeName=imaps # Search configuration folder=INBOX subjectContains=jenkins > receivedXMinutesAgo=1440 # JavaMail configuration mail.debug=true mail.debug.auth=true mail.imaps.host=<above_host> mail.imaps.port=993
attachments : String
$class: 'PromotionTrigger'
jobName : String
process : String
$class: 'PullRequestBuildTrigger'
The following parameters are available to the triggered build:
triggerPhrase : String
whitelist : String
pullRequestReview
reviewStates : Array / List of String
(optional)
$class: 'QuayIoTrigger'
repositories : Array / List of String
(optional)
$class: 'RemoteBuildResultTrigger'
cronTabSpec : String
remoteJobInfos
id : String
(optional)
remoteJobName : String
(optional)
remoteServer : String
(optional)
resultChecks
(optional)
key : String
expectedValue : String
triggerResults : Array / List of boolean
(optional)
uid : String
(optional)
$class: 'RemoteBuildTrigger'
remoteBuildToken : String
Remote build token.
You can set token string for remote build. Build will be triggered if application message has the same token in token attribute.
upstream
Set up a trigger so that when some other projects finish building, a new build is scheduled for this project. This is convenient for running an extensive test after a build is complete, for example.
This configuration complements the "Build other projects" section in the "Post-build Actions" of an upstream project, but is preferable when you want to configure the downstream project.
upstreamProjects : String
threshold : String
(optional)
$class: 'RundeckTrigger'
filterJobs : boolean
jobsIdentifiers : Array / List of String
executionStatuses : Array / List of String
token
class hudson.util.Secret
pollSCM
Note that this is going to be an expensive operation for CVS, as every polling requires Jenkins to scan the entire workspace and verify it with the server. Consider setting up a "push" trigger to avoid this overhead, as described in this document
scmpoll_spec : String
ignorePostCommitHooks : boolean
(optional)
This can be useful if you want to prevent some long-running jobs (e.g. reports) starting because of every commit, but still want to run them periodic if SCM changes have occurred.
Note that this option needs to be supported by the SCM plugin, too! The subversion-plugin supports this since version 1.44.
$class: 'SpoonTrigger'
repositoryUrl : String
$class: 'SqsTrigger'
sqsDisableConcurrentBuilds : boolean
(optional)
sqsTriggerCredentialsId : String
(optional)
sqsTriggerQueueUrl : String
(optional)
$class: 'StashBuildTrigger'
cron : String
H/2 * * * *
would make Jenkins poll Stash every 2 minutes.
stashHost : String
https://stash.example.com/
credentialsId : String
projectCode : String
repositoryName : String
cancelOutdatedJobsEnabled : boolean
(optional)
checkDestinationCommit : boolean
(optional)
checkMergeable : boolean
(optional)
checkNotConflicted : boolean
(optional)
checkProbeMergeStatus : boolean
(optional)
ciBuildPhrases : String
(optional)
ciSkipPhrases : String
(optional)
deletePreviousBuildFinishComments : boolean
(optional)
ignoreSsl : boolean
(optional)
mergeOnSuccess : boolean
(optional)
onlyBuildOnComment : boolean
(optional)
targetBranchesToBuild : String
(optional)
master,release/.*
TeamsTrigger
Allows Teams Webhook Trigger to trigger this job.
genericVariables
key : String
value : String
defaultValue : String
(optional)
expressionType
(optional)
XPath
, JSONPath
, StringPart
regexpFilter : String
(optional)
regexpFilterText : String
regexpFilterExpression : String
genericRequestVariables
key : String
regexpFilter : String
genericHeaderVariables
key : String
regexpFilter : String
causeString : String
(optional)
overrideQuietPeriod : boolean
(optional)
printContributedVariables : boolean
(optional)
printPostContent : boolean
(optional)
silentResponse : boolean
(optional)
textSeparator : String
(optional)
token : String
(optional)
tokenCredentialId : String
(optional)
valuesFromTextKey : boolean
(optional)
cron
This feature is primarily for using Jenkins as a cron replacement, and it is not ideal for continuously building software projects . When people first start continuous integration, they are often so used to the idea of regularly scheduled builds like nightly/weekly that they use this feature. However, the point of continuous integration is to start a build as soon as a change is made, to provide a quick feedback to the change. To do that you need to hook up SCM change notification to Jenkins .
So, before using this feature, stop and ask yourself if this is really what you want.
spec : String
URLTrigger
cronTabSpec : String
triggerLabel : String
entries
(optional)
url : String
checkETag : boolean
(optional)
checkLastModificationDate : boolean
(optional)
checkStatus : boolean
(optional)
contentTypes
(optional)
JsonContent
jsonPaths
jsonPath : String
MD5Sum
TextContent
regExElements
regEx : String
XMLContent
xPaths
xPath : String
inspectingContent : boolean
(optional)
password : String
(optional)
proxyActivated : boolean
(optional)
requestHeaders
(optional)
headerName : String
(optional)
headerValue : String
(optional)
statusCode : int
(optional)
timeout : int
(optional)
useGlobalEnvVars : boolean
(optional)
username : String
(optional)
labelRestriction : boolean
(optional)
snapshotDependencies
withMaven(){...}
wrapping step and will trigger the build if one of these dependencies has been built (typically a SNAPSHOT version). This is convenient for automatically performing continuous integration. Jenkins will check the snapshot dependencies from the <dependency>
element in the POM.
$class: 'com.ribose.jenkins.plugin.awscodecommittrigger.SQSTrigger'
Available queues can be configured in the System Configuration of Jenkins.
Further documentation is available in the GitHub
queueUuid : String
subscribeInternalScm : boolean
sqsScmConfigs
type : String
url : String
subscribedBranches : String
refs/heads/<branchName>
master
, development
development, master, */master, *feature, feature/**
**
origin/branches*
would match origin/branches-foo
but not origin/branches/foo
, while origin/branches**
would match both origin/branches-foo
and origin/branches/foo
$class: 'io.relution.jenkins.scmsqs.SQSTrigger'
queueUuid : String
$class: 'org.jenkinsci.plugins.deploy.weblogic.trigger.DeploymentTrigger'
schedule : String
$class: 'org.jenkinsci.plugins.deployment.DeploymentTrigger'
For example, you can use this to run post-deployment smoke tests, or you can tickle your load balancer to shift traffic to newer servers.
This plugin injects the following variables:
This feature critically depends on fingerprints to function properly.
Imagine you are deploying foo.rpm file with Puppet. Here is the sequence of events until this trigger fires:
upstreamJob : String
The specified job must record fingerprints of the artifacts Chef/Puppet/etc deploys, when this trigger fires, the build to be started will see the corresponding build of the upstream job as the cause of the build, and receives all the parameters given to that upstream build.
cond
$class: 'ThresholdCondition'
env : String
threshold : int
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.