Skip to content
Permalink
Browse files

Merge pull request #1052 from daspilker/JENKINS-45812

[JENKINS-45812] fixed problem with using in Pipeline jobs
  • Loading branch information
daspilker committed Aug 28, 2017
2 parents b60e59e + ccf0dad commit f1b120337eea24f08edfefbc002e39ccb7574406
Showing with 4 additions and 1 deletion.
  1. +2 −0 docs/Home.md
  2. +2 −1 job-dsl-plugin/src/main/groovy/javaposse/jobdsl/plugin/ExecuteDslScripts.java
@@ -43,6 +43,8 @@ Browse the Jenkins issue tracker to see any [open issues](https://issues.jenkins
([#1042](https://github.com/jenkinsci/job-dsl-plugin/pull/1042))
* Fixed problem with static analysis plugins
([JENKINS-46042](https://issues.jenkins-ci.org/browse/JENKINS-46042))
* Fixed problem with `using` in Pipeline jobs
([JENKINS-45812](https://issues.jenkins-ci.org/browse/JENKINS-45812))
* 1.64 (July 07 2017)
* Increased the minimum supported Java version to JDK 7
* Increased the minimum supported Jenkins version to 2.19
@@ -12,6 +12,7 @@
import hudson.Launcher;
import hudson.Util;
import hudson.model.AbstractBuild;
import hudson.model.AbstractItem;
import hudson.model.AbstractProject;
import hudson.model.Item;
import hudson.model.ItemGroup;
@@ -362,7 +363,7 @@ public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath workspace, @Nonnul
Collection<SeedReference> seedJobReferences = descriptor.getTemplateJobMap().get(templateName);
Collection<SeedReference> matching = Collections2.filter(seedJobReferences, new SeedNamePredicate(seedJobName));

AbstractProject templateProject = getLookupStrategy().getItem(seedJob, templateName, AbstractProject.class);
AbstractItem templateProject = getLookupStrategy().getItem(seedJob, templateName, AbstractItem.class);
final String digest = Util.getDigestOf(new FileInputStream(templateProject.getConfigFile().getFile()));

if (matching.size() == 1) {

0 comments on commit f1b1203

Please sign in to comment.
You can’t perform that action at this time.