Leandro Lucarella: Just a quick comment; I haven't tested this code, but you should be able to use the Jenkins Script Console to re-save all affected jobs. Saving the job config should cause the hook to be created on GitHub:

for (job in Jenkins.instance.getAllItems(AbstractProject.class)) {
  if (job.getTrigger(GitHubPushTrigger.class) != null) {
    println("Saving " + job);
    job.save();
  }
}

You'll probably have to add some "import" statements at the top for the relevant classes.

Or if you want test it first on individual jobs, you can get a single job like this: Jenkins.instance.getItem('job-name-goes-here')

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to