Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
2k views

How to set a Git repository when creating a job in Jenkins from a Groovy script?

I'm trying to setup a Jenkins server with Groovy script: def repository = 'git@somerepo' import hudson.tasks.Shell; job = Jenkins.instance.createProject(FreeStyleProject, 'TestJob') job....
Alter_so's user avatar