How to call the Jenkins Script plugin?
To invoke the Jenkins Script plugin, you can follow these steps:
- Open the management interface of Jenkins.
- Select “System Management” in the left navigation bar.
- Choose “Manage Plugins” on the system management page.
- In the “Optional Plugins” tab, search for and select the “Script plugin” (or a similar plugin).
- Click on the “Download and Install” button to proceed with the installation.
- After installation is complete, return to the Jenkins homepage.
- Create or edit a Jenkins task.
- Locate the “Build Steps” section on the configuration page.
- Click on the “Add build step” button and select “Execute system Groovy script” (or a similar option).
- Write your script code in the “Groovy Script” text box.
- 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.