I have clean integration-test -DclassId=app
as a maven goal in a Jenkins Maven Job.
How can I retrieve this in Java using System.getenv();
? When I do this I am only seeing null.
I have clean integration-test -DclassId=app
as a maven goal in a Jenkins Maven Job.
How can I retrieve this in Java using System.getenv();
? When I do this I am only seeing null.
Copyright © 2021 Jogjafile Inc.
For command line options you have to use
System.getProperty()
instead ofSystem.getenv()
:Find more details here.