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

static Model
getInstanceFromJson(string $json)

Instanz aus einem JSON-String erstellen

from Model
__construct(string $name)

__construct

Action>
getActions()

Aktionen

string
getDescription()

getDescription

string
getDisplayName()

getDisplayName

mixed
getDisplayNameOrNull()

getDisplayNameOrNull

string
getName()

getName

URI
getUrl()

URL

boolean
getBuildable()

getBuildable

Build>
getBuilds()

getBuilds

string
getColor()

getColor

getFirstBuild()

getFirstBuild

HealthReport>
getHealthReport()

getHealthReport

boolean
getInQueue()

getInQueue

boolean
getKeepDependencies()

getKeepDependencies

getLastBuild()

getLastBuild

getLastCompletedBuild()

getLastCompletedBuild

getLastFailedBuild()

getLastFailedBuild

getLastStableBuild()

getLastStableBuild

getLastSuccessfulBuild()

getLastSuccessfulBuild

getLastUnstableBuild()

getLastUnstableBuild

getLastUnsuccessfulBuild()

getLastUnsuccessfulBuild

integer
getNextBuildNumber()

getNextBuildNumber

Properties
getProperty()

getProperty

mixed
getQueueItem()

getQueueItem

boolean
getConcurrentBuild()

getConcurrentBuild

Job>
getDownstreamProjects()

getDownstreamProjects

SCM
getScm()

getScm

Job>
getUpstreamProjects()

getUpstreamProjects

Job
setActions(Collection $actions)

Actions setzen

Job
setDescription(string $description)

setDescription

Job
setDisplayName(string $displayName)

setDisplayName

Job
setDisplayNameOrNull(mixed $displayNameOrNull)

setDisplayNameOrNull

Job
setName(string $name)

setName

Job
setUrl(URI $url)

setUrl

Job
setBuildable(boolean $buildable)

setBuildable

Job
setBuilds(Collection $builds)

setBuilds

Job
setColor(string $color)

setColor

Job
setFirstBuild(Build $firstBuild)

setFirstBuild

Job
setHealthReport(Collection $healthReport)

setHealthReport

Job
setInQueue(boolean $inQueue)

setInQueue

Job
setKeepDependencies(boolean $keepDependencies)

setKeepDependencies

Job
setLastBuild(Build $lastBuild)

setLastBuild

Job
setLastCompletedBuild(Build $lastCompletedBuild)

setLastCompletedBuild

Job
setLastFailedBuild(Build $lastFailedBuild)

setLastFailedBuild

Job
setLastStableBuild(Build $lastStableBuild)

setLastStableBuild

Job
setLastSuccessfulBuild(Build $lastSuccessfulBuild)

setLastSuccessfulBuild

Job
setLastUnstableBuild(Build $lastUnstableBuild)

setLastUnstableBuild

Job
setLastUnsuccessfulBuild(Build $lastUnsuccessfulBuild)

setLastUnsuccessfulBuild

Job
setNextBuildNumber(integer $nextBuildNumber)

setNextBuildNumber

Job
setProperty(Properties $property)

setProperty

Job
setQueueItem(mixed $queueItem)

setQueueItem

Job
setConcurrentBuild(boolean $concurrentBuild)

setConcurrentBuild

Job
setDownstreamProjects(Collection $downstreamProjects)

setDownstreamProjects

Job
setScm(SCM $scm)

setScm

Job
setUpstreamProjects(Collection $upstreamProjects)

setUpstreamProjects

static Action
buildActionObjectList(ArrayHelper $actions)

Objektliste mit den Aktionen erstellen

static Collection<$class>
buildObjectList(ArrayHelper $list, string $class)

Objektliste erstellen

static Job
getInstanceFromArray(Array $array)

getInstanceFromArray

Details

in Model at line 45
static Model getInstanceFromJson(string $json)

Instanz aus einem JSON-String erstellen

Parameters

string $json Json Zeichenkette

Return Value

Model Datenobjekt

Exceptions

TypeException Wenn die JSON-Zeichenkette kein Array abbildet oder Fehlerhaft ist

at line 180
__construct(string $name)

__construct

Parameters

string $name Name

at line 191
Action> getActions()

Aktionen

Return Value

Action>

at line 201
string getDescription()

getDescription

Return Value

string

at line 211
string getDisplayName()

getDisplayName

Return Value

string

at line 221
mixed getDisplayNameOrNull()

getDisplayNameOrNull

Return Value

mixed

at line 231
string getName()

getName

Return Value

string

at line 240
URI getUrl()

URL

Return Value

URI

at line 249
boolean getBuildable()

getBuildable

Return Value

boolean

at line 258
Build> getBuilds()

getBuilds

Return Value

Build>

at line 267
string getColor()

getColor

Return Value

string Farbe

at line 277
Build getFirstBuild()

getFirstBuild

Return Value

Build

at line 286
HealthReport> getHealthReport()

getHealthReport

Return Value

HealthReport>

at line 296
boolean getInQueue()

getInQueue

Return Value

boolean

at line 306
boolean getKeepDependencies()

getKeepDependencies

Return Value

boolean

at line 316
Build getLastBuild()

getLastBuild

Return Value

Build

at line 326
Build getLastCompletedBuild()

getLastCompletedBuild

Return Value

Build

at line 336
Build getLastFailedBuild()

getLastFailedBuild

Return Value

Build

at line 346
Build getLastStableBuild()

getLastStableBuild

Return Value

Build

at line 356
Build getLastSuccessfulBuild()

getLastSuccessfulBuild

Return Value

Build

at line 366
Build getLastUnstableBuild()

getLastUnstableBuild

Return Value

Build

at line 376
Build getLastUnsuccessfulBuild()

getLastUnsuccessfulBuild

Return Value

Build

at line 386
integer getNextBuildNumber()

getNextBuildNumber

Return Value

integer

at line 395
Properties getProperty()

getProperty

Return Value

Properties

at line 405
mixed getQueueItem()

getQueueItem

Return Value

mixed

at line 415
boolean getConcurrentBuild()

getConcurrentBuild

Return Value

boolean

at line 425
Job> getDownstreamProjects()

getDownstreamProjects

Return Value

Job>

at line 434
SCM getScm()

getScm

Return Value

SCM

at line 444
Job> getUpstreamProjects()

getUpstreamProjects

Return Value

Job>

at line 455
Job setActions(Collection $actions)

Actions setzen

Parameters

Collection $actions

Return Value

Job

at line 467
Job setDescription(string $description)

setDescription

Parameters

string $description

Return Value

Job

at line 479
Job setDisplayName(string $displayName)

setDisplayName

Parameters

string $displayName

Return Value

Job

at line 491
Job setDisplayNameOrNull(mixed $displayNameOrNull)

setDisplayNameOrNull

Parameters

mixed $displayNameOrNull

Return Value

Job

at line 503
Job setName(string $name)

setName

Parameters

string $name

Return Value

Job

at line 515
Job setUrl(URI $url)

setUrl

Parameters

URI $url URL

Return Value

Job

at line 527
Job setBuildable(boolean $buildable)

setBuildable

Parameters

boolean $buildable

Return Value

Job

at line 539
Job setBuilds(Collection $builds)

setBuilds

Parameters

Collection $builds

Return Value

Job

at line 551
Job setColor(string $color)

setColor

Parameters

string $color Farbe

Return Value

Job

at line 563
Job setFirstBuild(Build $firstBuild)

setFirstBuild

Parameters

Build $firstBuild Build

Return Value

Job

at line 575
Job setHealthReport(Collection $healthReport)

setHealthReport

Parameters

Collection $healthReport

Return Value

Job

at line 587
Job setInQueue(boolean $inQueue)

setInQueue

Parameters

boolean $inQueue

Return Value

Job

at line 599
Job setKeepDependencies(boolean $keepDependencies)

setKeepDependencies

Parameters

boolean $keepDependencies

Return Value

Job

at line 611
Job setLastBuild(Build $lastBuild)

setLastBuild

Parameters

Build $lastBuild Build

Return Value

Job

at line 623
Job setLastCompletedBuild(Build $lastCompletedBuild)

setLastCompletedBuild

Parameters

Build $lastCompletedBuild Build

Return Value

Job

at line 635
Job setLastFailedBuild(Build $lastFailedBuild)

setLastFailedBuild

Parameters

Build $lastFailedBuild Build

Return Value

Job

at line 647
Job setLastStableBuild(Build $lastStableBuild)

setLastStableBuild

Parameters

Build $lastStableBuild Build

Return Value

Job

at line 659
Job setLastSuccessfulBuild(Build $lastSuccessfulBuild)

setLastSuccessfulBuild

Parameters

Build $lastSuccessfulBuild Build

Return Value

Job

at line 671
Job setLastUnstableBuild(Build $lastUnstableBuild)

setLastUnstableBuild

Parameters

Build $lastUnstableBuild Build

Return Value

Job

at line 683
Job setLastUnsuccessfulBuild(Build $lastUnsuccessfulBuild)

setLastUnsuccessfulBuild

Parameters

Build $lastUnsuccessfulBuild Build

Return Value

Job

at line 695
Job setNextBuildNumber(integer $nextBuildNumber)

setNextBuildNumber

Parameters

integer $nextBuildNumber

Return Value

Job

at line 707
Job setProperty(Properties $property)

setProperty

Parameters

Properties $property

Return Value

Job

at line 719
Job setQueueItem(mixed $queueItem)

setQueueItem

Parameters

mixed $queueItem

Return Value

Job

at line 731
Job setConcurrentBuild(boolean $concurrentBuild)

setConcurrentBuild

Parameters

boolean $concurrentBuild

Return Value

Job

at line 743
Job setDownstreamProjects(Collection $downstreamProjects)

setDownstreamProjects

Parameters

Collection $downstreamProjects

Return Value

Job

at line 755
Job setScm(SCM $scm)

setScm

Parameters

SCM $scm

Return Value

Job

at line 767
Job setUpstreamProjects(Collection $upstreamProjects)

setUpstreamProjects

Parameters

Collection $upstreamProjects

Return Value

Job

at line 779
static protected Action buildActionObjectList(ArrayHelper $actions)

Objektliste mit den Aktionen erstellen

Parameters

ArrayHelper $actions

Return Value

Action

at line 815
static protected Collection<$class> buildObjectList(ArrayHelper $list, string $class)

Objektliste erstellen

Parameters

ArrayHelper $list Liste mit den Daten
string $class Name der Objektklasse

Return Value

Collection<$class>

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": []
}

Parameters

Array $array

Return Value

Job