From 4ef3dcff87f6840a5025dc7a181285692269bbba Mon Sep 17 00:00:00 2001 From: Doug Lethin Date: Thu, 19 Mar 2015 12:18:38 -0400 Subject: [PATCH] added getConfigFileId method to GradleFileJobManagement --- .../plugin/jenkins/jobdsl/GradleFileJobManagement.groovy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/src/main/groovy/nl/ikoodi/gradle/plugin/jenkins/jobdsl/GradleFileJobManagement.groovy b/plugin/src/main/groovy/nl/ikoodi/gradle/plugin/jenkins/jobdsl/GradleFileJobManagement.groovy index 93d8a49..589ad86 100644 --- a/plugin/src/main/groovy/nl/ikoodi/gradle/plugin/jenkins/jobdsl/GradleFileJobManagement.groovy +++ b/plugin/src/main/groovy/nl/ikoodi/gradle/plugin/jenkins/jobdsl/GradleFileJobManagement.groovy @@ -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 @@ -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))