groovy hooks for jenkins

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

groovy hooks for jenkins

Gerry Storm
I followed instructions in https://wiki.jenkins.io/display/JENKINS/Logging and https://wiki.jenkins.io/display/JENKINS/Groovy+Hook+Script in order to log into a file.

I created a file $JENKINS_HOME/HOOK.groovy. It seems that jenkins happily ignored the file since I saw no effect even after I put a junk into the file (like an non existent import).

What am I missing? Are the instructions wrong/out of date?

I am running jenkins vla maven from the command line. It starts fine and seems working except that the hook is ignored.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/3f8288c2-b0d3-4038-a542-b9dd07b1c71c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: groovy hooks for jenkins

Baptiste MATHUS
Please use the users ML for such requests.

HOOK is a placeholder that should be replaced.

Le mar. 22 janv. 2019 à 21:31, Gerry Storm <[hidden email]> a écrit :

I created a file $JENKINS_HOME/HOOK.groovy. It seems that jenkins happily ignored the file since I saw no effect even after I put a junk into the file (like an non existent import).

What am I missing? Are the instructions wrong/out of date?

I am running jenkins vla maven from the command line. It starts fine and seems working except that the hook is ignored.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/3f8288c2-b0d3-4038-a542-b9dd07b1c71c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS6Y5Z%2BKy3kU4G9LNn--uqg_XD-UTxms6g6HCB-T5T55OA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: groovy hooks for jenkins

Gerry Storm
In reply to this post by Gerry Storm
Thank you Baptiste,

Where can I find which hook names are valid and what they do?

I can repost to the user ML if required.

On Tuesday, January 22, 2019 at 12:31:32 PM UTC-8, Gerry Storm wrote:
I followed instructions in <a href="https://wiki.jenkins.io/display/JENKINS/Logging" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins.io%2Fdisplay%2FJENKINS%2FLogging\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHQ_DVd-BrfGQ6U7XtjyJ3ww8IETg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins.io%2Fdisplay%2FJENKINS%2FLogging\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHQ_DVd-BrfGQ6U7XtjyJ3ww8IETg&#39;;return true;">https://wiki.jenkins.io/display/JENKINS/Logging and <a href="https://wiki.jenkins.io/display/JENKINS/Groovy+Hook+Script" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins.io%2Fdisplay%2FJENKINS%2FGroovy%2BHook%2BScript\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGsAUlCZj7mHM-F-gMDvbbEn6GoCQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins.io%2Fdisplay%2FJENKINS%2FGroovy%2BHook%2BScript\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGsAUlCZj7mHM-F-gMDvbbEn6GoCQ&#39;;return true;">https://wiki.jenkins.io/display/JENKINS/Groovy+Hook+Script in order to log into a file.

I created a file $JENKINS_HOME/HOOK.groovy. It seems that jenkins happily ignored the file since I saw no effect even after I put a junk into the file (like an non existent import).

What am I missing? Are the instructions wrong/out of date?

I am running jenkins vla maven from the command line. It starts fine and seems working except that the hook is ignored.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/0ea2325b-0662-4d10-908c-c7b83016aa4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.