Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93010395
PhabricatorJenkinsJobConfigOptions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Nov 25, 13:48
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Nov 27, 13:48 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22554243
Attached To
rPH Phabricator
PhabricatorJenkinsJobConfigOptions.php
View Options
<?php
final
class
PhabricatorJenkinsJobConfigOptions
extends
PhabricatorApplicationConfigOptions
{
public
function
getName
()
{
return
pht
(
'Jenkins Job'
);
}
public
function
getDescription
()
{
return
pht
(
'Options for Jenkins Job.'
);
}
public
function
getIcon
()
{
return
'fa-flask'
;
}
public
function
getGroup
()
{
return
'apps'
;
}
public
function
getOptions
()
{
return
array
(
$this
->
newOption
(
'jenkins.url'
,
'string'
,
null
)
->
setLocked
(
true
)
->
setSummary
(
pht
(
'URI to the Jenkins instance'
))
->
addExample
(
'https://jenkins.mydomain.com'
,
pht
(
'Valid Setting'
))
->
addExample
(
'https://mydomain.com/jenkins'
,
pht
(
'Valid Setting'
)),
$this
->
newOption
(
'jenkins.user'
,
'string'
,
'admin'
)
->
setLocked
(
true
)
->
setSummary
(
pht
(
'Username that can create Jenkins Jobs'
)),
$this
->
newOption
(
'jenkins.token'
,
'string'
,
null
)
->
setLocked
(
true
)
->
setHidden
(
true
)
->
setSummary
(
pht
(
'Jenkins token for the jenkins.user'
)),
$this
->
newOption
(
'jenkins.repo_cred'
,
'string'
,
null
)
->
setLocked
(
true
)
->
setHidden
(
true
)
->
setSummary
(
pht
(
'Jenkins credential ID for SSH repository access.'
)),
);
}
}
Event Timeline
Log In to Comment