Reference a system property in pipeline?

11 views
Skip to first unread message

Alan Sparks

unread,
Aug 12, 2020, 2:24:17 PM8/12/20
to jenkins...@googlegroups.com

I have some custom properties set on my Jenkins instances, and I’d like to get one of those in a pipeline. Having trouble finding out how.

 

I have a set of properties set with System.setProperty() in my Jenkins init.groovy.  Can see them in the Jenkins System Information page.  I’ve tried many permutations of env.MY_PROP, but all are null.

 

Tried System.getProperty(), but that requires script approval.  Is there any other way to get this without an approval?

-Alan

Reply all
Reply to author
Forward
0 new messages