During assembly, for example, in Builder perform() , you can at least do this:
@Override public boolean perform(Build<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {
It will add key-value pairs as build parameters, which will also display as environment variables in the usual way. Note. I have not tested it extensively, maybe some kind of “gotcha” that manifests itself in some situation ... But it has worked for me so far.
source share