This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Configuring Jenkins Operations

To use the Jenkins connector, add the <jenkins.init> element in your configuration before carrying out any other Jenkins operations. 

The Jenkins API uses HTTP basic authentication to specify the username and the API token. For more information, see https://wiki.jenkins-ci.org/display/JENKINS/Authenticating+scripted+clients.

init
<jenkins.init>
    <username>{$ctx:username}</username>
    <apiUrl>{$ctx:apiUrl}</apiUrl>
	<password>{$ctx:password}</password>
</jenkins.init>
Properties
  • username: Username of the Jenkins account being accessed.
  • apiUrl: Base endpoint URL of Jenkins API.
  • password: Password corresponding to the username provided for the Jenkins account.

Note

Add the following resources to the ESB registry.

  • /_system/governance/connectors/Jenkins/apiUrl
  • /_system/governance/connectors/Jenkins/username
  • /_system/governance/connectors/Jenkins/password


Now that you have connected to Jenkins, use the information in the following topics to perform various operations with the connector.