Skip to content

vweng/extended-choice-parameter-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== ejs template engine SAMPLE

import org.boon.Boon;
 
def jsonEditorOptions = Boon.fromJson(/{
        disable_edit_json: true,
        disable_properties: true,
        no_additional_properties: true,
        disable_collapse: true,
        disable_array_add: true,
        disable_array_delete: true,
        disable_array_reorder: true,
        theme: "bootstrap2",
        iconlib:"fontawesome4",
        schema: 
{
  "type": "object",
  "properties": {

    "project": {
       "propertyOrder" : 1,
       "format": "select",
       "type": "string",
       "enum": ["value1","value2"] 
      }
,
    "ctx": {
       "propertyOrder" : 2,
       "type": "string",
       "watch": { "pn": "project" },
       "template": "<%= pn %>"
      }

 
    }
 },
        startval: {
"project": "value1",
"ctx": "vale"
        }
}/);

and the result is an ENV var set like:

VAR1={"ctx":"vale","project":"value1"}

About

Jenkins extended-choice-parameter plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 48.9%
  • CSS 39.1%
  • Java 11.1%
  • HTML 0.9%