Job
class Job extends Model
Job
Zusammenfassung der Daten eines Jobs
Properties
Action> | $actions | ||
string | $description | ||
string | $displayName | ||
mixed | $displayNameOrNull | ||
string | $name | ||
URI | $url | ||
boolean | $buildable | ||
Build> | $builds | ||
string | $color | ||
Build | $firstBuild | ||
HealthReport> | $healthReport | ||
boolean | $inQueue | ||
boolean | $keepDependencies | ||
Build | $lastBuild | ||
Build | $lastCompletedBuild | ||
Build | $lastFailedBuild | ||
Build | $lastStableBuild | ||
Build | $lastSuccessfulBuild | ||
Build | $lastUnstableBuild | ||
Build | $lastUnsuccessfulBuild | ||
integer | $nextBuildNumber | ||
Properties | $jobProperty | ||
mixed | $queueItem | ||
boolean | $concurrentBuild | ||
Job> | $downstreamProjects | ||
SCM | $scm | ||
Job> | $upstreamProjects |
Methods
__construct
Aktionen
getDescription
getDisplayName
getDisplayNameOrNull
getName
URL
getBuildable
getBuilds
getColor
getFirstBuild
getHealthReport
getInQueue
getKeepDependencies
getLastBuild
getLastCompletedBuild
getLastFailedBuild
getLastStableBuild
getLastSuccessfulBuild
getLastUnstableBuild
getLastUnsuccessfulBuild
getNextBuildNumber
getProperty
getQueueItem
getConcurrentBuild
getDownstreamProjects
getUpstreamProjects
Actions setzen
setDescription
setDisplayName
setDisplayNameOrNull
setBuildable
setHealthReport
setInQueue
setKeepDependencies
setNextBuildNumber
setProperty
setQueueItem
setConcurrentBuild
setDownstreamProjects
setUpstreamProjects
Objektliste mit den Aktionen erstellen
Objektliste erstellen
getInstanceFromArray
Details
in Model at line 45
static Model
getInstanceFromJson(string $json)
Instanz aus einem JSON-String erstellen
at line 180
__construct(string $name)
__construct
at line 191
Action>
getActions()
Aktionen
at line 201
string
getDescription()
getDescription
at line 211
string
getDisplayName()
getDisplayName
at line 221
mixed
getDisplayNameOrNull()
getDisplayNameOrNull
at line 231
string
getName()
getName
at line 240
URI
getUrl()
URL
at line 249
boolean
getBuildable()
getBuildable
at line 258
Build>
getBuilds()
getBuilds
at line 267
string
getColor()
getColor
at line 277
Build
getFirstBuild()
getFirstBuild
at line 286
HealthReport>
getHealthReport()
getHealthReport
at line 296
boolean
getInQueue()
getInQueue
at line 306
boolean
getKeepDependencies()
getKeepDependencies
at line 316
Build
getLastBuild()
getLastBuild
at line 326
Build
getLastCompletedBuild()
getLastCompletedBuild
at line 336
Build
getLastFailedBuild()
getLastFailedBuild
at line 346
Build
getLastStableBuild()
getLastStableBuild
at line 356
Build
getLastSuccessfulBuild()
getLastSuccessfulBuild
at line 366
Build
getLastUnstableBuild()
getLastUnstableBuild
at line 376
Build
getLastUnsuccessfulBuild()
getLastUnsuccessfulBuild
at line 386
integer
getNextBuildNumber()
getNextBuildNumber
at line 395
Properties
getProperty()
getProperty
at line 405
mixed
getQueueItem()
getQueueItem
at line 415
boolean
getConcurrentBuild()
getConcurrentBuild
at line 425
Job>
getDownstreamProjects()
getDownstreamProjects
at line 434
SCM
getScm()
getScm
at line 444
Job>
getUpstreamProjects()
getUpstreamProjects
at line 455
Job
setActions(Collection $actions)
Actions setzen
at line 467
Job
setDescription(string $description)
setDescription
at line 479
Job
setDisplayName(string $displayName)
setDisplayName
at line 491
Job
setDisplayNameOrNull(mixed $displayNameOrNull)
setDisplayNameOrNull
at line 503
Job
setName(string $name)
setName
at line 515
Job
setUrl(URI $url)
setUrl
at line 527
Job
setBuildable(boolean $buildable)
setBuildable
at line 539
Job
setBuilds(Collection $builds)
setBuilds
at line 551
Job
setColor(string $color)
setColor
at line 575
Job
setHealthReport(Collection $healthReport)
setHealthReport
at line 587
Job
setInQueue(boolean $inQueue)
setInQueue
at line 599
Job
setKeepDependencies(boolean $keepDependencies)
setKeepDependencies
at line 695
Job
setNextBuildNumber(integer $nextBuildNumber)
setNextBuildNumber
at line 707
Job
setProperty(Properties $property)
setProperty
at line 719
Job
setQueueItem(mixed $queueItem)
setQueueItem
at line 731
Job
setConcurrentBuild(boolean $concurrentBuild)
setConcurrentBuild
at line 743
Job
setDownstreamProjects(Collection $downstreamProjects)
setDownstreamProjects
at line 767
Job
setUpstreamProjects(Collection $upstreamProjects)
setUpstreamProjects
at line 779
static protected Action
buildActionObjectList(ArrayHelper $actions)
Objektliste mit den Aktionen erstellen
at line 815
static protected Collection<$class>
buildObjectList(ArrayHelper $list, string $class)
Objektliste erstellen
at line 949
static Job
getInstanceFromArray(Array $array)
getInstanceFromArray
{
"actions": [
{
"parameterDefinitions": [
{
"defaultParameterValue": null,
"description": "Wählen Sie den Zweig der erstellt werden soll aus. Wenn Sie trunk auswählen wird der Entwicklerzweig erstellt.",
"name": "BRANCHES",
"type": "JiraVersionParameterDefinition"
}
]
},
{},
{},
{},
{},
{},
{}
],
"description": "my job projekt in jenkins",
"displayName": "myjob",
"displayNameOrNull": null,
"name": "myjob",
"url": "http://jenkins.example.com/job/myjob/",
"buildable": true,
"builds": [
{
"number": 288,
"url": "http://jenkins.example.com/job/myjob/288/"
},
{
"number": 287,
"url": "http://jenkins.example.com/job/myjob/287/"
},
{
"number": 286,
"url": "http://jenkins.example.com/job/myjob/286/"
},
{
"number": 285,
"url": "http://jenkins.example.com/job/myjob/285/"
}
],
"color": "red",
"firstBuild": {
"number": 239,
"url": "http://jenkins.example.com/job/myjob/239/"
},
"healthReport": [
{
"description": "Build-Stabilität:2derletzten5Buildsschlugfehl.",
"iconClassName": "icon-health-40to59",
"iconUrl": "health-40to59.png",
"score": 60
}
],
"inQueue": false,
"keepDependencies": false,
"lastBuild": {
"number": 288,
"url": "http://jenkins.example.com/job/myjob/288/"
},
"lastCompletedBuild": {
"number": 288,
"url": "http://jenkins.example.com/job/myjob/288/"
},
"lastFailedBuild": {
"number": 288,
"url": "http://jenkins.example.com/job/myjob/288/"
},
"lastStableBuild": {
"number": 285,
"url": "http://jenkins.example.com/job/myjob/285/"
},
"lastSuccessfulBuild": {
"number": 285,
"url": "http://jenkins.example.com/job/myjob/285/"
},
"lastUnstableBuild": {
"number": 283,
"url": "http://jenkins.example.com/job/myjob/283/"
},
"lastUnsuccessfulBuild": {
"number": 288,
"url": "http://jenkins.example.com/job/myjob/288/"
},
"nextBuildNumber": 289,
"property": [
{},
{
"additionalTag": "",
"cleanImages": true,
"pushOnSuccess": false,
"tagOnCompletion": false
},
{},
{
"parameterDefinitions": [
{
"defaultParameterValue": null,
"description": "WählenSiedenZweigdererstelltwerdensollaus.WennSietrunkauswählenwirdderEntwicklerzweigerstellt.",
"name": "BRANCHES",
"type": "JiraVersionParameterDefinition"
}
]
},
{},
{},
{}
],
"queueItem": null,
"concurrentBuild": false,
"downstreamProjects": [],
"scm": {},
"upstreamProjects": []
}