Page MenuHomec4science

PhabricatorJenkinsJobConfigOptions.php
No OneTemporary

File Metadata

Created
Mon, Nov 25, 13:48

PhabricatorJenkinsJobConfigOptions.php

<?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