Jenkins Server Integration

JFrog Pipelines Documentation

Products
JFrog Pipelines
Content Type
User Guide
ft:sourceType
Paligo

The Jenkins Integration is used to connect the JFrog Pipelines platform to Jenkins through the Jenkins Artifactory Plugin.Configure Jenkins Artifactory Plug-in

Creating a Jenkins Server Integration

You can add this integration by following steps on the Managing Pipelines Integrations page.

Here is the information you need to create this integration:

  • Name -- choose a friendly name for the integration

  • url -- enter the HTTP endpoint (URL) of your Jenkins server

  • Jenkins user -- the Jenkins account user name

  • Jenkins API token -- the Jenkins user's API token for authentication

  • Token to configure Jenkins Plugin -- generate the required Token to configure Jenkins Plugin to complete the integration.

Note

For information about using the Jenkins server integration, see Using Jenkins With Pipelines.

Usage

The Jenkins Server integration can be used with the Jenkins native step. Operation requires that the Jenkins Artifactory Plugin be installed in your Jenkins server.Configure Jenkins Artifactory Plug-in

For Jenkins to successfully interoperate with Pipelines, a bearer token generated by Pipelines must be provided to the required plugin for authentication of your JPD user account.

Configuration

To complete the Jenkins Server integration and connect it to the Jenkins Artifactory Plugin:

  1. In the Jenkins Server Integration UI, enter the required configuration information.

  2. Next to the field Token to configure Jenkins Plugin, click Generate.

    image2020-6-18_11-41-5.png
  3. Once the token is generated, click Copy to Clipboard.

    image2020-6-18_11-41-56.png
  4. In the Jenkins Artifactory Plugin configuration, in the JFrog Pipelines server section, Add the token to the Credentials., pasting the value from your clipboard.

  5. Return to Pipelines, and open the Jenkins Server Integration again for editing. You should now see a Callback URL presented. Click Copy webhook url to clipboard.

    image2020-6-18_12-8-46.png
  6. In the Jenkins Artifactory Plugin configuration, past this URL into the Integration URLfield.

    image2020-6-18_12-6-45.png

Default Environment Variables

When you add this integration directly to a step, a set of environment variables is automatically made available.

Environment variable

Description

int_<integration-name>_url

HTTP endpoint of Jenkins

int_<integration-name>_jenkinsUsername

Jenkins username

int_<integration-name>_jenkinsToken

Jenkins API token