<?php

final class PhabricatorHarbormasterConfigOptions
  extends PhabricatorApplicationConfigOptions {

  public function getName() {
    return pht('Harbormaster');
  }

  public function getDescription() {
    return pht('Configure Harbormaster build engine.');
  }

  public function getFontIcon() {
    return 'fa-ship';
  }

  public function getGroup() {
    return 'apps';
  }

  public function getOptions() {
    return array(
      $this->newOption('jenkins.host', 'string', null)
        ->setDescription(pht('Jenkins installation hostname.')),
      $this->newOption('jenkins.user-id', 'string', null)
        ->setDescription(pht('Username for accessing Jenkins.')),
      $this->newOption('jenkins.api-token', 'string', null)
        ->setMasked(true)
        ->setDescription(pht('API token for accessing Jenkins.')),
    );
  }

}

<?php

final class PhabricatorHarbormasterConfigOptions
  extends PhabricatorApplicationConfigOptions {

  public function getName() {
    return pht('Harbormaster');
  }

  public function getDescription() {
    return pht('Configure Harbormaster build engine.');
  }

  public function getFontIcon() {
    return 'fa-ship';
  }

  public function getGroup() {
    return 'apps';
  }

  public function getOptions() {
    return array(
      $this->newOption('jenkins.host', 'string', null)
        ->setDescription(pht('Jenkins installation hostname.')),
      $this->newOption('jenkins.user-id', 'string', null)
        ->setDescription(pht('Username for accessing Jenkins.')),
      $this->newOption('jenkins.api-token', 'string', null)
        ->setHidden(true)
        ->setDescription(pht('API token for accessing Jenkins.')),
    );
  }

}

Migrate "Jenkins API Token" config setting from masked to hidden
Migrate "Jenkins API Token" config setting from masked to hidden

Related to "T6518-harbormaster-notify-jenkins-step" branch, but can't put it in there because "setHidden" method was added only to master recently (see ebebeb8f7cb7f1691fd65d3a5579efd26376afe4).
