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 Administration > Orchestration Configuration > Endpoints.
  2. Click Add.
  3. Select Jenkins (Code Stream) from the Plug-In drop-down menu and click Next.
  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. Click Next.
  6. Enter the Jenkins server configuration details.

    Option

    Description

    Jenkins Instance Name

    Enter the Jenkins instance name.

    For example, qe-jenkins.test.com.

    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 from the drop-down menu to enable this configuration.

  7. Click Add.
  8. Click the Code Stream tab in vRealize Automation to continue with the task configuration.

What to do next

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