gojenkins icon indicating copy to clipboard operation
gojenkins copied to clipboard

Support Job Copy in Folder

Open taomaree opened this issue 4 years ago • 4 comments

this patch support job copy from/to in folder. (destination folder must be exists.)

example code

jenkins.CopyJob("/group1/subgroup2/job3", "newJob") 
jenkins.CopyJob("/group1/subgroup2/job3", "/newGroup1/newGroup2/newJob") 
jenkins.CopyJob("job3", "/newGroup1/newJob") 
jenkins.CopyJob("job3", "newJob") 

taomaree avatar Apr 27 '20 12:04 taomaree

A great addition, I succeeded after using it, but I have a problem here. After copying the project, there is no build button. You need to re-click the configuration, and then save the application before you can see the build button.Do you have this problem too

eryajf avatar Feb 23 '21 01:02 eryajf

Hi @taomaree could you rebase the PR, I will be able to merge it once test it locally.

figo avatar Feb 26 '21 18:02 figo

A great addition, I succeeded after using it, but I have a problem here. After copying the project, there is no build button. You need to re-click the configuration, and then save the application before you can see the build button.Do you have this problem too

I also encountered this problem, how did you solve it?

abuxliu avatar Sep 18 '21 07:09 abuxliu

use CopyJob return err "is an unsafe character " ?

doing-cr7 avatar Feb 24 '23 01:02 doing-cr7