Skip to content

Jenkins Config

Harald Sitter edited this page Aug 16, 2017 · 7 revisions

Jenkins Scripting Setup

  • Admin knowledge about Jenkins required.
  • Get API token from Jenkins somehow. The API token is available in your personal configuration page. Click your name on the top right corner on every page, then click "Configure" to see your API token. (The URL $root/me/configure is a good shortcut.) You can also change your API token from here.
  • ~/.config/pangea-jenkins.json
{
    "username": "USERNAME",
    "password": "API_TOKEN",
    "server_ip": "FQDN_OR_IP",
    "server_port": "HOST_PORT",
    "ssl": true|false
}
  • Run random jenkins scripts

Phabricator Authentication (Neon)

Phabricator authentication is based on OAuth tokens. API usage can not do OAuth and as such has no knowledge of which groups a user belongs to so Admin rights are not available. To get admin access via API you need to manually assign yourself to the admin role (you can only do that if you are in the relevant group on phabricator obviously): https://build.neon.kde.org/role-strategy/assign-roles

OpenID Authentication (Kubuntu CI)

The OpenID authentication plugin has a bug where it will not actually recognize you as admin when going through the API. Supposedly because of limitations in the OpenID team extension support. The only known way to fix this is to manually make your user an admin through a role strategy (/role-strategy/manage-roles) or similar authentication tech.

Clone this wiki locally
You can’t perform that action at this time.