Skip to content

Instantly share code, notes, and snippets.

@clifford-github
Created December 12, 2013 21:41
Show Gist options
  • Save clifford-github/7936030 to your computer and use it in GitHub Desktop.
Save clifford-github/7936030 to your computer and use it in GitHub Desktop.
access build parameter in Jenkins plugin
try {
EnvVars envVars;
envVars = build.getEnvironment(listener);
listener.getLogger().println("DEPLOY_ON-DEV: " + envVars.get("DEPLOY_ON_DEV"));
} catch (IOException e1) {
listener.getLogger().println(e1);
} catch (InterruptedException e1) {
listener.getLogger().println(e1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment