in src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarm.java [657:668]
private Upload upload(Project project, String artifact, AWSDeviceFarmUploadType uploadType) throws InterruptedException, IOException, AWSDeviceFarmException {
if (artifact == null || artifact.isEmpty()) {
throw new AWSDeviceFarmException("Must have an artifact path.");
}
File file = getArtifactFile(env.expand(artifact));
if (file == null || !file.exists()) {
throw new AWSDeviceFarmException(String.format("File artifact %s not found.", artifact));
}
return upload(file, project, uploadType);
}