We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69eaf86 commit 175d9c3Copy full SHA for 175d9c3
1 file changed
src/main/java/com/offbytwo/jenkins/JenkinsServer.java
@@ -610,4 +610,16 @@ public Build getBuild(QueueItem q) throws IOException {
610
throw e;
611
}
612
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
+ }
625
0 commit comments