Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from dlethin/feature/addFileManagementMethods
Browse files Browse the repository at this point in the history
Added getConfigFileId method to GradleFileJobManagement
  • Loading branch information
pvdissel committed Mar 19, 2015
2 parents d14f342 + 4ef3dcf commit 394a379
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package nl.ikoodi.gradle.plugin.jenkins.jobdsl
import javaposse.jobdsl.dsl.ConfigurationMissingException
import javaposse.jobdsl.dsl.FileJobManagement
import javaposse.jobdsl.dsl.NameNotProvidedException
import javaposse.jobdsl.dsl.ConfigFileType

class GradleFileJobManagement extends FileJobManagement {
File outputDirectory
Expand Down Expand Up @@ -51,6 +52,11 @@ class GradleFileJobManagement extends FileJobManagement {
return credentialsDescription
}

@Override
String getConfigFileId(ConfigFileType type, String name) {
return name
}

@Override
InputStream streamFileInWorkspace(String filePath) {
new FileInputStream(new File(gradleProjectDirectoryForReadFromWorkspaceMagic, filePath))
Expand Down

0 comments on commit 394a379

Please sign in to comment.