public class WriteJSONStep
extends org.jenkinsci.plugins.workflow.steps.Step
JSON object to file in the current working directory.| Modifier and Type | Class and Description |
|---|---|
static class |
WriteJSONStep.DescriptorImpl |
| Constructor and Description |
|---|
WriteJSONStep(String file,
Object json) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFile()
Returns the name of the file to write.
|
Object |
getJson()
Return the JSON object to save.
|
int |
getPretty()
Return the number of spaces used to prettify the JSON dump.
|
org.jenkinsci.plugins.workflow.steps.StepExecution |
start(org.jenkinsci.plugins.workflow.steps.StepContext context) |
public String getFile()
public Object getJson()
If it is not a JSON object, JSONObject.fromObject(Object) will be used in a first
step.
public int getPretty()
Copyright © 2016–2020. All rights reserved.