Re: How to get a System Groovy Script in Git

2021-02-15 Thread 'Dirk Heinrichs' via Jenkins Users
Am Montag, den 15.02.2021, 13:01 -0800 schrieb Amedee Van Gasse: > Would I need another configuration before that? In "Source Code > Management"? Yes. Just add the it repo containing your script there (as you would do in any other job) and change the System Groovy Script step to use the script fr

How to get a System Groovy Script in Git

2021-02-15 Thread Amedee Van Gasse
Someone here at the company wrote a "System Groovy Script" that runs as a nightly job on master. The code of the script, all 100 lines of it, is directly in the job configuration in the web interface. I would like to get that code in a git repository, so that it's easy to roll back if needed, an