How to check if plugin is running in development mode

17 views
Skip to first unread message

Surya Gaddipati

unread,
Feb 21, 2015, 4:15:21 PM2/21/15
to jenkin...@googlegroups.com
Is there way to check to plugin is launched via mvn hpi:run 


But it env variable is not set causing it return false all the time. 

Daniel Beck

unread,
Feb 21, 2015, 5:51:17 PM2/21/15
to jenkin...@googlegroups.com
Try hudson.hpi.run:
https://github.com/jenkinsci/maven-hpi-plugin/blob/master/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java#L237
> --
> 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 jenkinsci-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/81e96984-701d-4e1d-973f-cf7236d0b023%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Surya Gaddipati

unread,
Feb 22, 2015, 12:48:38 PM2/22/15
to jenkin...@googlegroups.com
Thanks Daniel. That did the trick.
Reply all
Reply to author
Forward
0 new messages