Skip to content

Commit 175d9c3

Browse files
committed
Avoided eclipse code styling
1 parent 69eaf86 commit 175d9c3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,4 +610,16 @@ public Build getBuild(QueueItem q) throws IOException {
610610
throw e;
611611
}
612612
}
613+
614+
/**
615+
* Rename a job
616+
*
617+
* @param jobName Existing Job name
618+
* @param newJobName New Job Name
619+
* @throws IOException In case of a failure.
620+
*/
621+
public void renameJob(String jobName, String newJobName) throws IOException {
622+
client.post(
623+
"/job/" + EncodingUtils.encode(jobName) + "/doRename?newName=" + EncodingUtils.encodeParam(newJobName));
624+
}
613625
}

0 commit comments

Comments
 (0)