Skip to content

Commit ba59d40

Browse files
authored
Merge pull request #231 from frydaykg/patch-1
add availability to update views in folders
2 parents 3a5775f + c29ee2e commit ba59d40

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

jenkins-client/src/main/java/com/offbytwo/jenkins/JenkinsServer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,14 @@ public void updateView(String viewName, String viewXml) throws IOException {
574574
public void updateView(String viewName, String viewXml, boolean crumbFlag) throws IOException {
575575
client.post_xml("/view/" + EncodingUtils.encode(viewName) + "/config.xml", viewXml, crumbFlag);
576576
}
577+
578+
public void updateView(FolderJob folder, String viewName, String viewXml) throws IOException {
579+
client.post_xml(toBaseUrl(folder) + "view/" + EncodingUtils.encode(viewName) + "/config.xml", viewXml, true);
580+
}
581+
582+
public void updateView(FolderJob folder, String viewName, String viewXml, boolean crumbFlag) throws IOException {
583+
client.post_xml(toBaseUrl(folder) + "view/" + EncodingUtils.encode(viewName) + "/config.xml", viewXml, crumbFlag);
584+
}
577585

578586
/**
579587
* Update the xml description of an existing job

0 commit comments

Comments
 (0)