You can run tests or other jobs by using the Jenkins plug-in that allows you to use custom automation and scripts.

About this task

You can use any Jenkins job in the Jenkins server in the release pipeline with this endpoint enabled. You can use this endpoint to invoke a Jenkins build job during the modeling of a release pipeline and execute the job as part of the release pipeline.

Prerequisites

  • Verify that the Jenkins server is available and configured with or without SSL.

  • Verify that the Jenkins server version is 1.561 or later.

  • Verify that the Jenkins jobs are created in the Jenkins server with the input string parameter, vRCSTestExecutionId.

  • Log in to the vRealize Automation console as a system administrator or release manager.

Procedure

  1. Select Code Stream > Endpoints.
  2. Click Add.
  3. Select Jenkins from the Endpoint Type drop-down menu.
  4. Enter a Jenkins server endpoint name and an applicable description.

    For example, in the description section you can add the release pipeline name that uses this Jenkins server endpoint.

  5. Enter the Jenkins server configuration details.

    Option

    Description

    User Credentials

    User name and password for the Jenkins server.

    URL

    Enter the host URL as protocol://host:port.

    Sample host URL, 192.10.121.13:8080.

    Polling Interval

    Time that the task must wait to check the progress.

    Request Retry Count

    Number of times to retry the scheduled build request for the Jenkins server.

    Retry Wait Time

    Seconds to wait before retrying the build request for the Jenkins server.

    Offline Creation

    Require a validation and certificate acceptance when the endpoint is created.

    You can accept the default setting or select Yes to enable this configuration. The offline creation allows you to create the endpoint when the server is not accessible.

  6. Click Save.

What to do next

Create a test task to use this endpoint in the release pipeline. See the Using vRealize Code Stream guide.