0

I don't seem to be able to find a way to copy jobs from one folder to another using groovy script in Jenkins.

Any pointers would be really helpful

devops
  • 1,121
  • 5
  • 20
  • 50

1 Answers1

0

This S/O post will show you you how to copy jobs

This S/O post will show you how to move jobs.

Essentially, it's either :

Items.copy(item, newName)

or

Items.move(item, folder)

Ian W
  • 4,559
  • 2
  • 18
  • 37