public class ArtifactsService extends Object
Constructor and Description |
---|
ArtifactsService() |
Modifier and Type | Method and Description |
---|---|
void |
saveArtifact(com.offbytwo.jenkins.JenkinsServer jenkins,
String jobName,
int buildNumber,
String artifactName,
File outputFile)
Save artifact for specified location for specific job, build number and artifact name.
|
InputStream |
streamArtifact(com.offbytwo.jenkins.JenkinsServer jenkins,
String jobName,
int buildNumber,
String artifactName)
Get artifact inputstream for specific job, build number and artifact name.
|
public void saveArtifact(com.offbytwo.jenkins.JenkinsServer jenkins, String jobName, int buildNumber, String artifactName, File outputFile) throws DiggerClientException, IOException
jobName
- name of the jobbuildNumber
- job build numberartifactName
- name of the artifact to fetch - can be regexp for example *.apkoutputFile
- file (location) used to save artifactDiggerClientException
- when problem with fetching artifacts from jenkinsIOException
- when one of the files cannot be savedpublic InputStream streamArtifact(com.offbytwo.jenkins.JenkinsServer jenkins, String jobName, int buildNumber, String artifactName) throws DiggerClientException
jobName
- name of the jobbuildNumber
- job build numberartifactName
- name of the artifact to fetch - can be regexp for example *.apkDiggerClientException
- when problem with fetching artifacts from jenkinsCopyright © 2017 JBoss by Red Hat. All Rights Reserved.