Jenkins Plugin-environment variable plugin envinject

Source: Internet
Author: User

One Master/Slave node Properties

Used to define specific slave variables, such as the path of many commands.

 

 

Build parameter in job 2

After setting, you are prompted to modify the default value during build startup. For example, when you start the Build Change, decide whether to build release or debug.

The following prompt is displayed when you start build:

 

3. envinject plugin

You must manually install this plug-in to define the environment variables for the job. You can also define the OB step to modify the environment variables during the build process. For example, you can define a public post location for the job:

 

Modify the variable in the job step, for example, modifying the buildplatform value:

 

 

The result is as follows:

 

 

Refer:

 

Envinject plugin; you can also consider using tool Environment Plugin.

 

Complete!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.