Configuring the Pipeline project to use created scripts

You can configure a Pipeline project directly from the Jenkins UI by using pipeline scripts to run test assets from Jenkins.

Before you begin

You must have completed the following tasks:

Procedure

  1. Open the Jenkins Pipeline project on the Jenkins Dashboard, and then click Configure.
  2. Select the Pipeline tab.
  3. Select the Pipeline script option in the Definition field.
  4. Select a sample script from the drop-down list.
  5. Open the pipeline script that you created for the build step.
  6. Copy the script for the build step under the steps section in the Definition field.
  7. Click Save.

Results

You have configured the build job with the script that you can use in your Pipeline project.

What to do next

You can run the build configured in your Pipeline project. See Running tests from Jenkins.