/** * Gets the JDK that this project is configured with, or null. */ public JDK getJDK() { return Jenkins.getInstance().getJDK(jdk); }
/** * Gets the JDK that this project is configured with, or null. */ public JDK getJDK() { return Jenkins.getInstance().getJDK(jdk); }
/** * Gets the JDK that this Sonar builder is configured with, or null. */ @CheckForNull public JDK getJdkFromJenkins() { return Jenkins.getInstance().getJDK(jdk); }
/** * Gets the JDK that this Sonar publisher is configured with, or null. */ private JDK getJDK() { return Jenkins.getInstance().getJDK(jdk); }
public JDK getJDK() { return Jenkins.getInstance().getJDK(jdk); }
/** * Gets the {@link JDK}s where the builds will be run. * @return never null but can be empty */ public @Nonnull Set<JDK> getJDKs() { final Jenkins jenkins = Jenkins.getInstance(); if (jenkins == null) { return Collections.emptySet(); } Axis a = axes.find("jdk"); if(a==null) return Collections.emptySet(); Set<JDK> r = new HashSet<JDK>(); for (String j : a) { JDK jdk = jenkins.getJDK(j); if(jdk!=null) r.add(jdk); } return r; }
@Override public JDK getJDK() { final Jenkins jenkins = Jenkins.getInstance(); return jenkins != null ? jenkins.getJDK(combination.get("jdk")) : null; }
/** * Setup the selected JDK. If none is provided nothing is done. */ private void setupJDK() throws AbortException, IOException, InterruptedException { String jdkInstallationName = step.getJdk(); if (StringUtils.isEmpty(jdkInstallationName)) { console.println("[withMaven] using JDK installation provided by the build agent"); return; } if (withContainer) { // see #detectWithContainer() LOGGER.log(Level.FINE, "Ignoring JDK installation parameter: {0}", jdkInstallationName); console.println("WARNING: \"withMaven(){...}\" step running within a container," + " tool installations are not available see https://issues.jenkins-ci.org/browse/JENKINS-36159. " + "You have specified a JDK installation \"" + jdkInstallationName + "\", which will be ignored."); return; } console.println("[withMaven] using JDK installation " + jdkInstallationName); JDK jdk = Jenkins.getInstance().getJDK(jdkInstallationName); if (jdk == null) { throw new AbortException("Could not find the JDK installation: " + jdkInstallationName + ". Make sure it is configured on the Global Tool Configuration page"); } Node node = getComputer().getNode(); if (node == null) { throw new AbortException("Could not obtain the Node for the computer: " + getComputer().getName()); } jdk = jdk.forNode(node, listener).forEnvironment(env); jdk.buildEnvVars(envOverride); }
JDK jdk = Jenkins.getActiveInstance().getJDK(builder.getFitnesseJdk(envVars)); if (jdk != null) { Node node = Computer.currentComputer().getNode();