How to call the Jenkins Script plugin?

To invoke the Jenkins Script plugin, you can follow these steps:

  1. Open the management interface of Jenkins.
  2. Select “System Management” in the left navigation bar.
  3. Choose “Manage Plugins” on the system management page.
  4. In the “Optional Plugins” tab, search for and select the “Script plugin” (or a similar plugin).
  5. Click on the “Download and Install” button to proceed with the installation.
  6. After installation is complete, return to the Jenkins homepage.
  7. Create or edit a Jenkins task.
  8. Locate the “Build Steps” section on the configuration page.
  9. Click on the “Add build step” button and select “Execute system Groovy script” (or a similar option).
  10. Write your script code in the “Groovy Script” text box.
  11. Click on the “Save” button to save the configuration.

Now, when you run that Jenkins task, it will execute the Groovy script you have written.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds