Get the App
SLTechnology News&Howtos  ›  Servers  › 

Jenkins (3) Parametric Construction process

Shulou Source: shulou.com Published: 2022-06-02 18:28:00 10月15日 Update

Parameterized build is a way to provide interaction with users by selecting different parameters passed in to perform different tasks, such as selecting different project names and publishing to different environments. Parametric construction is implemented and completed through the Extended Choice Parameter plug-in. The specific installation configuration is as follows:

1. Install the Extended Choice Parameter plug-in. Jenkins-- system Management-plug-in Management-optional plug-ins-Click to install

2. Configuration related parameterized configuration options

3. Related configuration of Extended Choice Parameter plug-in

4. Build and execute.

You can see if the build is complete.

Second, interact through configuration files

1. Configure the corresponding items.

2. Configure the corresponding configuration file on the jenkins server:

Jenkins@cfd461f82683:~$ cat / var/jenkins_home/jenkins.conf abc=test1,test2,test3,test4,test5,master1,master2

3. Execute the build

Just click execute.

Tags: Configuration plug-ins parameters different file management selection task name method server environment user system project service process Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Apple macOS Shulou Tech Info Shulou Information