Class BitbucketSCMFile
- java.lang.Object
-
- jenkins.scm.api.SCMFile
-
- com.atlassian.bitbucket.jenkins.internal.scm.filesystem.BitbucketSCMFile
-
public class BitbucketSCMFile extends jenkins.scm.api.SCMFile
- Since:
- 3.0.0
-
-
Constructor Summary
Constructors Constructor Description BitbucketSCMFile(BitbucketFilePathClient client, String ref)
Constructor for the root BitbucketSCMFileBitbucketSCMFile(BitbucketSCMFile parent, String name, jenkins.scm.api.SCMFile.Type type)
Constructor for any child file/directory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<jenkins.scm.api.SCMFile>
children()
InputStream
content()
String
getFilePath()
Optional<String>
getRef()
long
lastModified()
protected jenkins.scm.api.SCMFile
newChild(String name, boolean assumeIsDirectory)
protected jenkins.scm.api.SCMFile.Type
type()
-
-
-
Constructor Detail
-
BitbucketSCMFile
public BitbucketSCMFile(BitbucketFilePathClient client, @Nullable String ref)
Constructor for the root BitbucketSCMFile
-
BitbucketSCMFile
public BitbucketSCMFile(BitbucketSCMFile parent, String name, jenkins.scm.api.SCMFile.Type type)
Constructor for any child file/directory
-
-
Method Detail
-
newChild
protected jenkins.scm.api.SCMFile newChild(String name, boolean assumeIsDirectory)
- Specified by:
newChild
in classjenkins.scm.api.SCMFile
-
children
public Iterable<jenkins.scm.api.SCMFile> children() throws IOException, InterruptedException
- Specified by:
children
in classjenkins.scm.api.SCMFile
- Throws:
IOException
InterruptedException
-
getFilePath
public String getFilePath()
-
lastModified
public long lastModified()
- Specified by:
lastModified
in classjenkins.scm.api.SCMFile
-
type
protected jenkins.scm.api.SCMFile.Type type() throws IOException, InterruptedException
- Specified by:
type
in classjenkins.scm.api.SCMFile
- Throws:
IOException
InterruptedException
-
content
public InputStream content() throws IOException, InterruptedException
- Specified by:
content
in classjenkins.scm.api.SCMFile
- Throws:
IOException
InterruptedException
-
-