Jenkins CI Pipeline Scripts not permitted to use method groovy.lang.GroovyObject

Quickfix Solution: I had similar issue and I resolved it doing the following Navigate to jenkins > Manage jenkins > In-process Script Approval There was a pending command, which I had to approve. Alternative 1: Disable sandbox As this article explains in depth, groovy scripts are run in sandbox mode by default. This means that … Read more

How to configure Git post commit hook

As mentioned in “Polling must die: triggering Jenkins builds from a git hook“, you can notify Jenkins of a new commit: With the latest Git plugin 1.1.14 (that I just release now), you can now do this more >easily by simply executing the following command: curl http://yourserver/jenkins/git/notifyCommit?url=<URL of the Git repository> This will scan all … Read more